From: intrigeri Date: Mon, 28 Jul 2008 17:12:31 +0000 (+0000) Subject: fix reportspace X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=c7b7dc7f1c4eada99813945bb81d1b8a62a92395;p=matthijs%2Fupstream%2Fbackupninja.git fix reportspace git-svn-id: http://code.autistici.org/svn/backupninja/trunk@618 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/AUTHORS b/AUTHORS index 145fa02..1d852cf 100644 --- a/AUTHORS +++ b/AUTHORS @@ -27,3 +27,4 @@ Matthew Palmer -- mysql enhancements romain.tartiere@healthgrid.org -- ldap fixes Adam Monsen - spec file updates Matthew Palmer -- halt loglevel feature +dan@garthwaite.org -- reportspace bugfix diff --git a/ChangeLog b/ChangeLog index 195bbab..ca0a952 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +version 0.9.7 -- UNRELEASED + backupninja changes + . fix bug in reportspace, thanks Dan Garthwaite + version 0.9.6 -- July 21, 2008 backupninja changes . fix bug in cstream definition, thanks Jamie McClelland diff --git a/src/backupninja.in b/src/backupninja.in index 47630f2..25f4e11 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -561,7 +561,7 @@ if [ $doit == 1 ]; then previous="" for i in $(ls "$configdirectory"); do backuploc=$(grep ^directory "$configdirectory"/"$i" | @AWK@ '{print $3}') - if [ "$backuploc" != "$previous" ]; then + if [ "$backuploc" != "$previous" -a -n "$backuploc" ]; then df -h "$backuploc" previous="$backuploc" fi