This commit is contained in:
anonymous 2021-04-08 20:25:55 +08:00
parent 1dc07713da
commit 5406ff5b8b

View File

@ -221,10 +221,6 @@ del_cron () {
## $1新任务清单文件路径 ## $1新任务清单文件路径
add_cron () { add_cron () {
local list_add=$1 local list_add=$1
local list_crontab_own_tmp=$dir_list_tmp/crontab_own.list
[ -f $list_crontab_own_tmp ] && rm -f $list_crontab_own_tmp
if [ -s $list_crontab_user ]; then if [ -s $list_crontab_user ]; then
echo -e "开始尝试自动添加定时任务...\n" echo -e "开始尝试自动添加定时任务...\n"
local detail=$(cat $list_add) local detail=$(cat $list_add)
@ -257,8 +253,6 @@ add_cron () {
notify "新任务添加失败通知" "尝试自动添加以下新的定时任务出错,请手动添加:\n$detail2" notify "新任务添加失败通知" "尝试自动添加以下新的定时任务出错,请手动添加:\n$detail2"
fi fi
fi fi
[ -f $list_crontab_own_tmp ] && rm -f $list_crontab_own_tmp
} }
## 更新所有仓库 ## 更新所有仓库