mirror of https://github.com/garrytan/gstack.git
Merge PR #1338: correct per-skill symlink removal snippet in README uninstall
This commit is contained in:
commit
1875696a89
15
README.md
15
README.md
|
|
@ -327,9 +327,18 @@ If you don't have the repo cloned (e.g. you installed via a Claude Code paste an
|
||||||
# 1. Stop browse daemons
|
# 1. Stop browse daemons
|
||||||
pkill -f "gstack.*browse" 2>/dev/null || true
|
pkill -f "gstack.*browse" 2>/dev/null || true
|
||||||
|
|
||||||
# 2. Remove per-skill symlinks pointing into gstack/
|
# 2. Remove per-skill directories whose SKILL.md points into gstack/
|
||||||
find ~/.claude/skills -maxdepth 1 -type l 2>/dev/null | while read -r link; do
|
find ~/.claude/skills -mindepth 1 -maxdepth 1 -type d ! -name gstack 2>/dev/null |
|
||||||
case "$(readlink "$link" 2>/dev/null)" in gstack/*|*/gstack/*) rm -f "$link" ;; esac
|
while IFS= read -r dir; do
|
||||||
|
link="$dir/SKILL.md"
|
||||||
|
[ -L "$link" ] || continue
|
||||||
|
target=$(readlink "$link" 2>/dev/null) || continue
|
||||||
|
case "$target" in
|
||||||
|
gstack/*|*/gstack/*)
|
||||||
|
rm -f "$link"
|
||||||
|
rmdir "$dir" 2>/dev/null || true
|
||||||
|
;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# 3. Remove gstack
|
# 3. Remove gstack
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue