From 34f690c53d4acaa2f02a3a60a4a264af8500c4be Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 2 Feb 2023 12:14:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20shell=20=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/task.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/task.sh b/shell/task.sh index aa853843..29eac09c 100755 --- a/shell/task.sh +++ b/shell/task.sh @@ -58,7 +58,7 @@ format_params() { if type timeout &>/dev/null; then timeoutCmd="timeout --foreground -s 14 -k 10s $command_timeout_time " fi - params=$(echo "$@" | sed -E 's/([^ ])&([^ ])/\1\\\&\2/g') + # params=$(echo "$@" | sed -E 's/([^ ])&([^ ])/\1\\\&\2/g') } while getopts ":lm:" opt; do @@ -81,7 +81,7 @@ format_params "$@" define_program "$@" handle_log_path "$@" -eval . $dir_shell/otask.sh "$params" "$cmd" +eval . $dir_shell/otask.sh "$cmd" [[ -f "$dir_log/$log_path" ]] && cat "$dir_log/$log_path" exit 0