修复task_before eval

This commit is contained in:
hanhh 2021-08-22 22:33:07 +08:00
parent 5a5e81eae0
commit 9c84c7bd38

View File

@ -97,7 +97,7 @@ run_normal() {
local id=$(cat $list_crontab_user | grep -E "$cmd_task $first_param" | perl -pe "s|.*ID=(.*) $cmd_task $first_param\.*|\1|" | head -1 | awk -F " " '{print $1}')
[[ $id ]] && update_cron "\"$id\"" "0" "$$" "$log_path"
. $file_task_before $cmd
eval . $file_task_before $cmd
eval timeout -k 10s $command_timeout_time $which_program $first_param $cmd