diff options
-rwxr-xr-x | src/backupninja.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backupninja.in b/src/backupninja.in index f871e0c..34021b5 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -569,11 +569,11 @@ if [ $doit == 1 ]; then if [ "$reportspace" == "yes" ]; then previous="" for i in $(ls "$configdirectory"); do - backuploc=$(grep ^directory "$configdirectory"/"$i" | @AWK@ '{print $3}') - if [ "$backuploc" != "$previous" -a -n "$backuploc" ]; then - df -h "$backuploc" - previous="$backuploc" - fi + backuploc=$(grep ^directory "$configdirectory"/"$i" | @AWK@ '{print $3}') + if [ "$backuploc" != "$previous" -a -n "$backuploc" ]; then + df -h "$backuploc" + previous="$backuploc" + fi done fi } | mail -s "backupninja: $hostname $subject" $reportemail |