mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-19 03:07:50 +08:00
修复删除失效任务失败 fix #50
This commit is contained in:
+1
-1
@@ -215,7 +215,7 @@ Del_Cron() {
|
|||||||
echo
|
echo
|
||||||
JsDrop=$(cat $ListJsDrop)
|
JsDrop=$(cat $ListJsDrop)
|
||||||
for Cron in $JsDrop; do
|
for Cron in $JsDrop; do
|
||||||
local id=$(cat $ListCronCurrent | grep -E "js $Cron" | perl -pe "s|.*ID=(.*) js $Cron|\1|")
|
local id=$(cat $ListCronCurrent | grep -E "js $Cron$" | perl -pe "s|.*ID=(.*) js $Cron$|\1|")
|
||||||
del_cron_api "$id"
|
del_cron_api "$id"
|
||||||
done
|
done
|
||||||
crontab $ListCronCurrent
|
crontab $ListCronCurrent
|
||||||
|
|||||||
Reference in New Issue
Block a user