diff options
Diffstat (limited to 'publish-purge')
-rwxr-xr-x | publish-purge | 2 |
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 |