From feb7469f0b540672f5a4d3dece06eb577f3958be Mon Sep 17 00:00:00 2001 From: ArthurErlich Date: Mon, 7 Sep 2026 20:01:20 +0200 Subject: [PATCH] fix(update.sh): report why gum auto-install failed instead of failing silently curl -fsSL | tar swallowed curl errors entirely, so a network failure fetching gum looked identical to a successful skip - just silently dropped into the plain-prompt fallback with no explanation. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Bs8xf8Dt8X6tRBvBiLCXYc --- scripts/update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/update.sh b/scripts/update.sh index cb2d922..3019f72 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -70,7 +70,9 @@ ensure_gum() { esac url="https://github.com/charmbracelet/gum/releases/download/v${GUM_VERSION}/gum_${GUM_VERSION}_Linux_${arch}.tar.gz" tmpdir="$(mktemp -d)" - if curl -fsSL "$url" | tar -xz -C "$tmpdir" 2>/dev/null; then + if ! curl -fsSL "$url" | tar -xz -C "$tmpdir" 2>/dev/null; then + echo "couldn't download gum from $url (no internet egress? falling back to plain prompts)" >&2 + else find "$tmpdir" -name gum -type f -exec cp {} "$GUM_BIN" \; chmod +x "$GUM_BIN" 2>/dev/null || true fi