From e885f4c9793f469eaad425b9bd09b285aabb003f Mon Sep 17 00:00:00 2001 From: Brandyn / Techy Date: Sun, 1 Nov 2026 01:43:22 -0500 Subject: [PATCH] deploy.sh: pending mode works without a git checkout (timer no longer fails before the clone switch) Co-Authored-By: Claude Fable 5.1 --- deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index d742dd4..59a35ae 100755 --- a/deploy.sh +++ b/deploy.sh @@ -20,7 +20,8 @@ notify() { curl -s -m 10 -H 'Content-Type: application/json' -d "$(python3 -c 'import json,sys; print(json.dumps({"content": sys.argv[1][:1900]}))' "$1")" "$DEPLOY_NOTIFY_WEBHOOK_URL" >/dev/null || true } cd "$REPO" || { log "repo dir $REPO missing"; exit 1; } -git rev-parse --is-inside-work-tree >/dev/null 2>&1 || { log "$REPO is not a git checkout (run switchToClone.sh once)"; exit 1; } +# "pending" (the 5-min timer) needs no git; every other mode does +[[ ${1:-} == pending ]] || git rev-parse --is-inside-work-tree >/dev/null 2>&1 || { log "$REPO is not a git checkout (run switchToClone.sh once)"; exit 1; } live_streams() { curl -s -m 3 'http://127.0.0.1:9997/v3/paths/list' 2>/dev/null | python3 -c 'import json,sys; d=json.load(sys.stdin); print(sum(1 for p in d.get("items",[]) if p.get("ready")))' 2>/dev/null || echo 0; }