summaryrefslogtreecommitdiff
path: root/publish-purge
diff options
context:
space:
mode:
Diffstat (limited to 'publish-purge')
-rwxr-xr-xpublish-purge2
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")"