From 6f96c84a1672cdc2a0cdd4071709ccbde04d0a78 Mon Sep 17 00:00:00 2001 From: whyour Date: Fri, 12 Nov 2021 23:42:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6=E5=8C=B9?= =?UTF-8?q?=E9=85=8D?= 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 1d93c05b..4d60fb60 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -105,7 +105,7 @@ add_cron() { cd $dir_scripts for file in $(cat $list_add); do local file_name=${file/${path}\//} - file_name=${file/${path}\_/} + file_name=${file_name/${path}\_/} if [[ -f $file ]]; then cron_line=$( perl -ne "{