From 1715203492f34bf1d3edb77f19631d4cd920d3b6 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 28 Oct 2013 14:51:35 +0100 Subject: 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. 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() for link_target in $link_targets do - if [ "$link_target" = "$file" ] + if [ "$link_target" = "${file##*/}" ] then referenced=1 break -- cgit v0.10-9-g596f