Skip to content

Commit c9abc40

Browse files
tonychang04claude
andauthored
fix(install): show download progress — 60MB binary looked frozen (#37)
install.sh downloaded the ~60MB Bun binary with 'curl -fsSL' (silent), so after 'Installing insta…' it showed nothing for the whole download and read as a hang (user report). Now --progress-bar to a TTY (quiet when piped without one), and the message states the size. Claude-Session: https://claude.ai/code/session_01GMbAe5K1RfwaAcge5inX7P Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent d445b2f commit c9abc40

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

install.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ fi
8282
tmp="$(mktemp -d)"
8383
trap 'rm -rf "$tmp"' EXIT
8484

85-
echo "Installing $BIN ($asset, $version)…"
86-
curl -fsSL "$base/$asset" -o "$tmp/$BIN" || { echo "error: download failed ($base/$asset)" >&2; exit 1; }
85+
echo "Installing $BIN ($asset, $version) — downloading ~60MB…"
86+
# --progress-bar (not -s): the binary is ~60MB, so a silent download looks frozen. Show progress
87+
# to a TTY; stay quiet when piped without one. Keep the tiny SHA256SUMS fetch silent.
88+
if [ -t 2 ]; then dl="curl -fL --progress-bar"; else dl="curl -fsSL"; fi
89+
$dl "$base/$asset" -o "$tmp/$BIN" || { echo "error: download failed ($base/$asset)" >&2; exit 1; }
8790
curl -fsSL "$base/SHA256SUMS" -o "$tmp/SHA256SUMS" || { echo "error: could not fetch SHA256SUMS" >&2; exit 1; }
8891

8992
# ---- verify checksum ----

0 commit comments

Comments
 (0)