From 37520c6651a63a45297e7f484c22fe3516c7d850 Mon Sep 17 00:00:00 2001 From: Jah-yee Date: Wed, 18 Mar 2026 11:43:32 +0800 Subject: [PATCH] Add bun installation check to setup script Fixes #147 - Add helpful error message when bun is not installed instead of showing 'bun: command not found' --- setup | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup b/setup index 73c6503e..446ef038 100755 --- a/setup +++ b/setup @@ -6,6 +6,14 @@ GSTACK_DIR="$(cd "$(dirname "$0")" && pwd)" SKILLS_DIR="$(dirname "$GSTACK_DIR")" BROWSE_BIN="$GSTACK_DIR/browse/dist/browse" +# Check if bun is installed +if ! command -v bun &> /dev/null; then + echo "Error: bun is not installed." >&2 + echo "Please install bun first:" >&2 + echo " curl -fsSL https://bun.sh/install | bash" >&2 + exit 1 +fi + # 1. Build browse binary if needed NEEDS_BUILD=0 if [ ! -x "$BROWSE_BIN" ]; then