diff options
author | Peter Palfrader <peter@palfrader.org> | 2013-01-27 18:26:28 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2013-01-27 18:26:28 +0000 |
commit | be4b425891d26deb1f58b4d9e74accce206e4785 (patch) | |
tree | daec8fd73ffa14c972c05891dc6a2fa8ece90062 | |
parent | f880c3a69aa9e4dc04416a2e7e575e85d3787d98 (diff) |
Improve a verbose output
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@580 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-x | publish-purge | 4 |
1 files 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 |