Fixed indentation
authorintrigeri <intrigeri@boum.org>
Tue, 5 Jan 2010 13:31:57 +0000 (14:31 +0100)
committerintrigeri <intrigeri@boum.org>
Tue, 5 Jan 2010 13:31:57 +0000 (14:31 +0100)
src/backupninja.in

index f871e0c03e326fe832398dcfbc813a104564533b..34021b56ec4350e811e73762e127bc5fa9fc2a98 100755 (executable)
@@ -569,11 +569,11 @@ if [ $doit == 1 ]; then
       if [ "$reportspace" == "yes" ]; then
          previous=""
          for i in $(ls "$configdirectory"); do
       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
          done
       fi
    } | mail -s "backupninja: $hostname $subject" $reportemail