From de196cda5cc65b269069bbb948ac9b808076b298 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Wed, 18 Mar 2026 23:27:24 -0700 Subject: [PATCH] fix: check for bun before running setup (#147) Users without bun installed got a cryptic "command not found" error. Now prints a clear message with install instructions. Closes #147 Co-Authored-By: Claude Opus 4.6 (1M context) --- setup | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup b/setup index 607c2772..59706aaf 100755 --- a/setup +++ b/setup @@ -2,6 +2,12 @@ # gstack setup — build browser binary + register all skills with Claude Code set -e +if ! command -v bun >/dev/null 2>&1; then + echo "Error: bun is required but not installed." >&2 + echo "Install it: curl -fsSL https://bun.sh/install | bash" >&2 + exit 1 +fi + GSTACK_DIR="$(cd "$(dirname "$0")" && pwd)" SKILLS_DIR="$(dirname "$GSTACK_DIR")" BROWSE_BIN="$GSTACK_DIR/browse/dist/browse"