summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpublish-purge2
1 files changed, 1 insertions, 1 deletions
diff --git a/publish-purge b/publish-purge
index 0be0fd7..cc17338 100755
--- a/publish-purge
+++ b/publish-purge
@@ -67,7 +67,7 @@ cleanit()
fi
fi
- if test_if_ancient "$d" "$ttl"; then
+ if [ "$ttl" -gt 0 ] && test_if_ancient "$d" "$ttl"; then
[ "$optVerbose" -ge "1" ] && echo "- Purging: $d"
[ "$optDonot" = "1" ] || rm -rf "$d"
fi