From 9cdfa2ef79d112ec17b3c2b33632e5a26922a4cb Mon Sep 17 00:00:00 2001 From: Chiupam <65508083+chiupam@users.noreply.github.com> Date: Thu, 13 Jan 2022 14:39:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=BF=90=E8=A1=8Cpyc?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E6=96=87=E4=BB=B6=20(#1072)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/task.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shell/task.sh b/shell/task.sh index e185cdeb..088d4ebb 100755 --- a/shell/task.sh +++ b/shell/task.sh @@ -10,7 +10,7 @@ define_program() { local first_param=$1 if [[ $first_param == *.js ]]; then which_program="node" - elif [[ $first_param == *.py ]]; then + elif [[ $first_param == *.py ]] || [[ $first_param == *.pyc ]]; then which_program="python3" elif [[ $first_param == *.sh ]]; then which_program="bash" @@ -83,7 +83,7 @@ run_normal() { random_delay fi fi - + log_time=$(date "+%Y-%m-%d-%H-%M-%S") log_dir_tmp="${first_param##*/}" log_dir_tmp_path="${first_param%%/*}" @@ -141,7 +141,7 @@ run_concurrent() { array_run[n]=${array[$i - 1]} let n++ done - + local cookieStr=$(echo ${array_run[*]} | sed 's/\ /\&/g') define_program "$first_param" @@ -234,7 +234,7 @@ run_designated() { array_run[n]=${array[$i - 1]} let n++ done - + local cookieStr=$(echo ${array_run[*]} | sed 's/\ /\&/g') eval echo -e "\#\# 开始执行... $begin_time\\\n" $cmd