Skills › gstack › gstack-upgrade › v1.86.0.0.sh
v1.86.0.0.sh
13 lines · gstack-upgrade/migrations/v1.86.0.0.sh at 3f79d81
1#!/usr/bin/env bash
2# Migration: v1.86.0.0 — /claude becomes /claude-code on non-Claude hosts.
3# Affected: existing generated skills, including copied and dangling installs.
4# The same helper runs before setup builds, so replacements are installed before
5# shared old renders are retired. This post-setup pass repairs missed upgrades.
6# Idempotent and non-fatal: foreign entries and failed replacements stay intact.
7set -u
8GSTACK_BUN_CONFIG=/dev/null; case "${OSTYPE:-}" in msys*|cygwin*) if command -v cygpath >/dev/null 2>&1; then GSTACK_BUN_CONFIG=NUL; fi ;; esac
9INSTALL_DIR="${GSTACK_INSTALL_DIR:-$HOME/.claude/skills/gstack}"
10if [ -f "$INSTALL_DIR/bin/gstack-migrate-claude-code" ] && command -v bun >/dev/null 2>&1; then
11 bun --no-env-file --config="${GSTACK_BUN_CONFIG:-/dev/null}" "$INSTALL_DIR/bin/gstack-migrate-claude-code" --install-dir "$INSTALL_DIR" || true
12fi
13exit 0