From be4b425891d26deb1f58b4d9e74accce206e4785 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 27 Jan 2013 18:26:28 +0000 Subject: Improve a verbose output git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@580 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- publish-purge | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/publish-purge b/publish-purge index 77a4156..d5beddd 100755 --- a/publish-purge +++ b/publish-purge @@ -38,7 +38,7 @@ test_if_ancient() tod="$(($mtime + 3600*24*$ttl))" now="$(date +%s)" - [ "$optVerbose" -ge "2" ] && echo " Considering $d: ttl=$ttl, mod time=$mtime, time of death=$tod, now=$now" + [ "$optVerbose" -ge "2" ] && echo "Considering $d: ttl=$ttl, mod time=$mtime, time of death=$tod, now=$now" [ "$tod" -lt "$now" ] && return 0 return 1 @@ -55,7 +55,7 @@ cleanit() fi if test_if_ancient "$d" "$ttl"; then - [ "$optVerbose" -ge "1" ] && echo "Purging: $d" + [ "$optVerbose" -ge "1" ] && echo "- Purging: $d" [ "$optDonot" = "1" ] || rm -rf "$d" fi return 0 -- cgit v1.2.3