New commits:
commit b4bd850a0a3db2380e174c47117e48ecb7164f9b
Author: Thomas Orgis <sobukus AT sourcemage.org>
Commit: Thomas Orgis <sobukus AT sourcemage.org>
resurrect: fix for symlink on /var/cache/sorcery
diff --git a/ChangeLog b/ChangeLog
index 48bcb10..5d97b11 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2023-11-13 Thomas Orgis
+ * resurrect: fix old version location if /var/cache/sorcery is a
symlink
+
2022-07-23 Ismael Luceno <ismael AT sourcemage.org>
* gaze: sreamlined show-spell-version functions
diff --git a/usr/sbin/resurrect b/usr/sbin/resurrect
index d9ed156..eb34a1b 100755
--- a/usr/sbin/resurrect
+++ b/usr/sbin/resurrect
@@ -84,7 +84,7 @@ do_resurrect() {
else
# find the available versions, regardless of compression
local version versions
- versions=$(find $INSTALL_CACHE -name "$spell-*-$HOST.*" -printf "%f\n" |
+ versions=$(find "$INSTALL_CACHE/" -name "$spell-*-$HOST.*" -printf
"%f\n" |
sed "s,^$spell-\(\S*\)-$HOST\.\S*$,\1," |
while read version; do
# we need to ignore other spells with similar names due to laxed
matching
[SM-Commit] GIT changes to devel-sobukus-protection sorcery by Thomas Orgis (b4bd850a0a3db2380e174c47117e48ecb7164f9b),
Thomas Orgis, 11/13/2023