This commit is contained in:
Leon 2021-07-21 13:49:45 +08:00 committed by GitHub
parent 9ae410532c
commit 0b6e4682c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ fi
# 添加定时任务 ql bot
if [ "$(grep -c bot /ql/config/crontab.list)" != 0 -a "${Rbot}" = 'y' ]; then
if [ "$(grep -c bot /ql/config/crontab.list)" != 0 ] && [ "${Rbot}" = 'y' -o "${Rall}" = 1 ]; then
echo "您的任务列表中已存在 task ql bot"
elif [ "$(grep -c bot /ql/config/crontab.list)" = 0 ] && [ "${Rbot}" = 'y' -o "${Rall}" = 1 ]; then
echo "开始添加 task ql bot"