eagle-mem 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/update.sh +4 -6
package/package.json
CHANGED
package/scripts/update.sh
CHANGED
|
@@ -85,13 +85,11 @@ fi
|
|
|
85
85
|
|
|
86
86
|
if [ -d "$PACKAGE_DIR/skills" ]; then
|
|
87
87
|
mkdir -p "$EAGLE_SKILLS_DIR"
|
|
88
|
-
# Remove stale symlinks for deleted skills
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
[ ! -L "$local_path" ] && continue
|
|
92
|
-
skill_name=$(basename "$local_path")
|
|
88
|
+
# Remove stale symlinks for deleted skills (find catches broken symlinks; glob doesn't)
|
|
89
|
+
find "$EAGLE_SKILLS_DIR" -maxdepth 1 -name "eagle-mem-*" -type l 2>/dev/null | while read -r existing; do
|
|
90
|
+
skill_name=$(basename "$existing")
|
|
93
91
|
if [ ! -d "$PACKAGE_DIR/skills/$skill_name" ]; then
|
|
94
|
-
rm "$
|
|
92
|
+
rm "$existing"
|
|
95
93
|
eagle_ok "Removed stale skill: $skill_name"
|
|
96
94
|
fi
|
|
97
95
|
done
|