修复task命令参数

This commit is contained in:
whyour 2022-11-02 19:40:16 +08:00
parent 3c5c5b0bbc
commit 4272b9ea35

View File

@ -72,8 +72,8 @@ done
[[ "$show_log" == "true" ]] && shift $(($OPTIND - 1)) [[ "$show_log" == "true" ]] && shift $(($OPTIND - 1))
format_params "$@" format_params "$@"
define_program "$params" define_program "$@"
handle_log_path "$params" handle_log_path "$@"
eval . $dir_shell/otask.sh "$params" "$cmd" eval . $dir_shell/otask.sh "$params" "$cmd"
[[ -f "$dir_log/$log_path" ]] && cat "$dir_log/$log_path" [[ -f "$dir_log/$log_path" ]] && cat "$dir_log/$log_path"