mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
修复entrypoint,修改新增任务通知
This commit is contained in:
+2
-2
@@ -124,9 +124,9 @@ del_cron_api() {
|
||||
code=$(echo $api | jq -r .code)
|
||||
message=$(echo $api | jq -r .message)
|
||||
if [[ $code == 200 ]]; then
|
||||
echo -e "删除成功"
|
||||
echo -e "成功"
|
||||
else
|
||||
echo -e "删除失败(${message})"
|
||||
echo -e "失败(${message})"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
+2
-3
@@ -108,8 +108,7 @@ del_cron() {
|
||||
done
|
||||
if [[ $ids ]]; then
|
||||
result=$(del_cron_api "$ids")
|
||||
detail="${result}\n\n${detail}"
|
||||
notify "删除失效任务通知" "$detail"
|
||||
notify "$path 删除任务${result}" "$detail"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -145,7 +144,7 @@ add_cron() {
|
||||
fi
|
||||
fi
|
||||
done
|
||||
notify "新增任务通知" "$detail"
|
||||
notify "$path 新增任务" "$detail"
|
||||
}
|
||||
|
||||
## 更新仓库
|
||||
|
||||
Reference in New Issue
Block a user