forked from bchanot/claude
fix(scripts): add gstack infra symlinks to install, update, and doctor
The gstack/bin/ and gstack/browse/dist/ symlinks (added in link.sh) were missing from install-plugins.sh and update-all.sh, meaning fresh installs and updates wouldn't create them. Also adds doctor.sh health checks. - install-plugins.sh: create symlinks after gstack ./setup - update-all.sh: refresh symlinks after gstack submodule update - doctor.sh: verify both symlinks exist in consistency section Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
0380f218c1
commit
23449dfc82
@@ -85,6 +85,18 @@ if [[ "$_gstack_confirm" =~ ^[Yy]$ ]]; then
|
||||
warn "GStack submodule update failed — run: git submodule update --init"
|
||||
fi
|
||||
|
||||
# Refresh gstack shared infrastructure symlinks (bin/ + browse/dist/)
|
||||
GSTACK_DIR="$REPO/skills-external/gstack"
|
||||
GSTACK_DST="$HOME/.claude/skills/gstack"
|
||||
if [ -d "$GSTACK_DIR/bin" ]; then
|
||||
mkdir -p "$GSTACK_DST"
|
||||
ln -sf "$GSTACK_DIR/bin" "$GSTACK_DST/bin"
|
||||
fi
|
||||
if [ -d "$GSTACK_DIR/browse/dist" ]; then
|
||||
mkdir -p "$GSTACK_DST/browse"
|
||||
ln -sf "$GSTACK_DIR/browse/dist" "$GSTACK_DST/browse/dist"
|
||||
fi
|
||||
|
||||
# Restore prior enabled/disabled state
|
||||
if [ "$_gstack_state" = "disabled" ] && [ -x "$REPO/lib/toggle-external.sh" ]; then
|
||||
bash "$REPO/lib/toggle-external.sh" disable gstack >/dev/null
|
||||
|
||||
Reference in New Issue
Block a user