From ac582200e47ac8f262b8a20fd859e7cf2cf265fb Mon Sep 17 00:00:00 2001 From: whyour Date: Fri, 30 Apr 2021 14:23:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=AD=A3=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/update.sh b/shell/update.sh index 9f95b50d..3b64acad 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -388,7 +388,8 @@ gen_list_repo() { # echo $base | head -1 >>$list_own_scripts perl -ne "{ print if /.*([\d\*]*[\*-\/,\d]*[\d\*] ){4}[\d\*]*[\*-\/,\d]*[\d\*]( |,|\").*\/?$file/ - }" $file | perl -pe "{ + }" $file | \ + perl -pe "{ s|.*(([\d\*]*[\*-\/,\d]*[\d\*] ){4}[\d\*]*[\*-\/,\d]*[\d\*])( \|,\|\").*/?$file.*|${repo_path}/$file|g; s|$dir_scripts/|| }" | head -1 >> $list_own_scripts