Download scripts/update-loop.sh from cnxqchen/self: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/spaces/cnxqchen/self/resolve/main/scripts/update-loop.sh
- Command line
-
hf download hf://spaces/cnxqchen/self/scripts/update-loop.sh
-
curl -L -o update-loop.sh https://huggingface.co/spaces/cnxqchen/self/resolve/main/scripts/update-loop.sh
333 Bytes
| set -eu | |
| : "${UPDATE_INTERVAL_SECONDS:=3600}" | |
| : "${RELEASE_COMMON_SH:=/usr/local/bin/release-common.sh}" | |
| . "$RELEASE_COMMON_SH" | |
| while true; do | |
| sleep "$UPDATE_INTERVAL_SECONDS" | |
| log "开始定时版本检查" | |
| if ! update_if_needed; then | |
| log "警告: 自动更新检查失败,继续运行当前版本" | |
| fi | |
| done | |