~cytrogen/gstack

ref: f7b95329c1628524583031f6d4672c58a8d86e45 gstack/browse/bin/find-browse -rwxr-xr-x 502 bytes
f7b95329 — Garry Tan feat: Phase 3.5 — cookie import, QA testing, team retro (v0.3.1) (#29) a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# Find the gstack browse binary. Echoes path and exits 0, or exits 1 if not found.
ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
if [ -n "$ROOT" ] && test -x "$ROOT/.claude/skills/gstack/browse/dist/browse"; then
  echo "$ROOT/.claude/skills/gstack/browse/dist/browse"
elif test -x "$HOME/.claude/skills/gstack/browse/dist/browse"; then
  echo "$HOME/.claude/skills/gstack/browse/dist/browse"
else
  echo "ERROR: browse binary not found. Run: cd <skill-dir> && ./setup" >&2
  exit 1
fi