summaryrefslogtreecommitdiffstats
path: root/bin/build-snapshot
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-10-28 13:51:35 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-10-28 13:51:35 (GMT)
commit1715203492f34bf1d3edb77f19631d4cd920d3b6 (patch)
tree3266e0324d81941f2caf110ec40e3e97969a8b08 /bin/build-snapshot
parentc42df58a3b99b34cd20a832a5ac9870ea31e2288 (diff)
downloadsite-1715203492f34bf1d3edb77f19631d4cd920d3b6.tar.gz
build-snapshot: Don't remove current snapshots
Fix a bug that resulted in the deletion of current snapshots: While comparing the snapshot tarball filenames with the list of symbolic link targets, we failed to strip the directory components from the snapshot pathname.
Diffstat (limited to 'bin/build-snapshot')
-rwxr-xr-xbin/build-snapshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build-snapshot b/bin/build-snapshot
index e6b4082..2e7b74a 100755
--- a/bin/build-snapshot
+++ b/bin/build-snapshot
@@ -76,7 +76,7 @@ rm_old_snapshots()
76 76
77 for link_target in $link_targets 77 for link_target in $link_targets
78 do 78 do
79 if [ "$link_target" = "$file" ] 79 if [ "$link_target" = "${file##*/}" ]
80 then 80 then
81 referenced=1 81 referenced=1
82 break 82 break