From e12a9bf784edcb4e61206ce1d7c6ba4de07a66b4 Mon Sep 17 00:00:00 2001 From: 0xK Date: Tue, 24 Mar 2026 11:58:30 +0100 Subject: [PATCH] fix: skip OTA update gracefully when git is not installed --- start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 1757e2e..21a1cad 100644 --- a/start.sh +++ b/start.sh @@ -6,7 +6,9 @@ cd "$(dirname "$0")" # ── OTA update ──────────────────────────────────────────────────────────────── # Pull latest changes from remote with a short timeout so we don't hang offline. # If requirements.txt changed, reinstall dependencies afterwards. -if git rev-parse --is-inside-work-tree &>/dev/null 2>&1; then +if ! command -v git &>/dev/null; then + echo " ℹ git not found — skipping update check." +elif git rev-parse --is-inside-work-tree &>/dev/null 2>&1; then echo "Checking for updates..." REQS_BEFORE=$(git rev-parse HEAD:requirements.txt 2>/dev/null || echo "")