From 667fe2bbba77259863c4e92d034508bb9091237d Mon Sep 17 00:00:00 2001 From: whyour Date: Tue, 9 Nov 2021 23:55:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dshell=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/update.sh b/shell/update.sh index eeeec8a4..a5834db0 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -407,7 +407,7 @@ gen_list_repo() { result=$(update_cron_command_api "$cmd_task ${uniq_path}/${filename}:$cron_id") fi done - grep -E "$cmd_task $uniq_path" $list_crontab_user | perl -pe "s|.*ID=(.*) $cmd_task ($uniq_path.*)\.*|\2|" | awk -F " " '{print $1}' | sort -u >"$dir_list_tmp/${uniq_path}_user.list" + grep -E "${cmd_task} ${uniq_path}" ${list_crontab_user} | perl -pe "s|.*ID=(.*) ${cmd_task} (${uniq_path}.*)\.*|\2|" | awk -F " " '{print $1}' | sort -u >"$dir_list_tmp/${uniq_path}_user.list" cd $dir_current }