projects
/
matthijs
/
upstream
/
backupninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b6fd3b2
)
Fixed indentation
author
intrigeri
<intrigeri@boum.org>
Tue, 5 Jan 2010 13:31:57 +0000
(14:31 +0100)
committer
intrigeri
<intrigeri@boum.org>
Tue, 5 Jan 2010 13:31:57 +0000
(14:31 +0100)
src/backupninja.in
patch
|
blob
|
history
diff --git
a/src/backupninja.in
b/src/backupninja.in
index f871e0c03e326fe832398dcfbc813a104564533b..34021b56ec4350e811e73762e127bc5fa9fc2a98 100755
(executable)
--- 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
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