From 4ca49edf015a0236d737408e75462bd34a4431ec Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 1 Apr 2021 15:17:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dgit=5Fpull=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/git_pull.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/git_pull.sh b/shell/git_pull.sh index e8fcc34e..3ae8ebdb 100755 --- a/shell/git_pull.sh +++ b/shell/git_pull.sh @@ -49,7 +49,7 @@ function Update_Cron { for ((i=1; i<${#RanHourArray[*]}; i++)); do RanHour="${RanHour},${RanHourArray[i]}" done - perl -i -pe "s|.+(git_pull.+log.*)|${RanMin} ${RanHour} \* \* \* sleep ${RanSleep} && \1|" ${ListCron} + perl -i -pe "s|.+(git_pull? .+git_pull\.log.*)|${RanMin} ${RanHour} \* \* \* sleep ${RanSleep} && \1|" ${ListCron} crontab ${ListCron} fi }