v1.0.0beta18.5

~修复定时任务部分bug
This commit is contained in:
juewuy
2021-01-05 19:58:53 +08:00
parent c15bea9ae1
commit 977efa7c00
2 changed files with 6 additions and 5 deletions

Binary file not shown.

View File

@@ -907,11 +907,11 @@ clashcron(){
else
hour=$num
echo -----------------------------------------------
read -p "请输入分钟0-60 > " num
read -p "请输入分钟0-59 > " num
if [ -z "$num" ]; then
errornum
setcron
elif [ $num -gt 60 ] || [ $num -lt 0 ]; then
elif [ $num -gt 59 ] || [ $num -lt 0 ]; then
errornum
setcron
else
@@ -933,9 +933,10 @@ clashcron(){
}
echo -----------------------------------------------
echo -e " 正在设置:\033[32m$cronname\033[0m定时任务"
echo -e " 输入 1-7 对应\033[33m每周相应天\033[0m运行"
echo -e " 输入 8 设为\033[33m每天定时\033[0m运行"
echo -e " 输入 1,3,6 代表\033[36m每周1,3,6\033[0m运行(注意用小写逗号分隔)"
echo -e " 输入 1~7 对应\033[33m每周的指定某天\033[0m运行"
echo -e " 输入 8 设为\033[33m每天\033[0m定时运行"
echo -e " 输入 1,3,6 代表\033[36m指定每周1,3,6\033[0m运行(小写逗号分隔)"
echo -e " 输入 a,b,c 代表\033[36m指定每周a,b,c\033[0m运行(1<=abc<=7)"
echo -----------------------------------------------
echo -e " 输入 9 \033[31m删除定时任务\033[0m"
echo -e " 输入 0 返回上级菜单"