diff options
author | Peter Palfrader <peter@palfrader.org> | 2013-09-20 12:54:53 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2013-09-20 12:54:53 +0000 |
commit | 0cf9a90df8ab615058baedddf7be8d51b67638e6 (patch) | |
tree | 5672cc6909e980ae5f6990c2ba3e205a37054cea | |
parent | bf2463e7e64a94cc0aaad8a8247f5d0fc41f3dc8 (diff) |
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
-rwxr-xr-x | publish-purge | 2 |
1 files changed, 2 insertions, 0 deletions
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")" |