From 79a1374b972f789720e002c804671a71df7773f1 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 23 Aug 2021 00:10:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=EF=B8=8Fsync=202021-08-23=2000:10:?= =?UTF-8?q?01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/sh/Helpcode2.8/task_before.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Scripts/sh/Helpcode2.8/task_before.sh b/Scripts/sh/Helpcode2.8/task_before.sh index 1bfec62..5ef4415 100644 --- a/Scripts/sh/Helpcode2.8/task_before.sh +++ b/Scripts/sh/Helpcode2.8/task_before.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash -# Build 20210817-001 - -p1=$1 +# Build 20210822-001 name_js=( jd_fruit @@ -227,9 +225,8 @@ combine_all() { ## 正常依次运行时,组合互助码格式化为全局变量 combine_only() { - local scr=$p1 ## 活动脚本完整文件名 for ((i = 0; i < ${#env_name[*]}; i++)); do - case $scr in + case $first_param in *${name_js[i]}.js | *${name_js[i]}.ts) if [[ -f $dir_log/.ShareCode/${name_config[i]}.log ]]; then . $dir_log/.ShareCode/${name_config[i]}.log @@ -250,7 +247,7 @@ TempBlock_JD_COOKIE && Random_JD_COOKIE if [ $scr_name ]; then team_task -elif [ $p1 ]; then +else combine_only fi