更新 scripts/deploy_gpu_monitor.sh

8778
This commit is contained in:
joy 2025-10-31 12:47:56 +08:00
parent 0e5bb3574a
commit bef148a06b
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ uninstall_script() {
# 1. 移除定时任务
echo -e "${BLUE}删除定时任务...${NC}"
local cron_line="${CRON_SCHEDULE} bash ${TARGET_SCRIPT} >> ${LOG_FILE} 2>&1"
local cron_line="${CRON_SCHEDULE} bash ${TARGET_SCRIPT} > ${LOG_FILE} 2>&1"
if crontab -l 2>/dev/null | grep -qxF "${cron_line}"; then
# 备份现有crontab