From 0cf9a90df8ab615058baedddf7be8d51b67638e6 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 20 Sep 2013 12:54:53 +0000 Subject: publish-purge: handle directory names that start with a dash (-) correctly git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@647 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- publish-purge | 2 ++ 1 file changed, 2 insertions(+) (limited to 'publish-purge') diff --git a/publish-purge b/publish-purge index a6628be..d10e78b 100755 --- a/publish-purge +++ b/publish-purge @@ -33,6 +33,7 @@ test_if_ancient() { local d="$1" local ttl="$2" + d=$(readlink -f -- "$d") if [ -e "$d/.publish.ttl" ]; then mtime="$(stat --format "%Y" "$d/.publish.ttl")" @@ -53,6 +54,7 @@ cleanit() { local d="$1" local ttl="$2" + d=$(readlink -f -- "$d") if [ -e "$d/.publish.ttl" ]; then ttl="$(cat "$d/.publish.ttl")" -- cgit v1.2.3