646f8c4036136257a54d8e3a28f9ea6cae49782e

Author
Philip <philip@yewtreeapps.com>
Committer
Philip <philip@yewtreeapps.com>
Date

Message

Excluded directories were no excluded from source disk usage report - quotes issue

Diff

 1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
 2index a545f344cac0fd8ca97dd5f0027020fb442e5423..540405161486297e9d95f17214b9f96a7a9f7258 100755
 3--- a/duplicity-backup.sh
 4+++ b/duplicity-backup.sh
 5@@ -377,13 +377,13 @@ get_source_file_size()
 6   if [ ! -z "$INCLIST" ]; then
 7     for include in ${INCLIST[@]}
 8       do
 9-        echo -e '"'$DUEXCLIST'"' | \
10+        echo -e "$DUEXCLIST" | \
11         du -hs ${DUEXCFLAG} ${include} | \
12         awk '{ FS="\t"; $0=$0; print $1"\t"$2 }' \
13         >> ${LOGFILE}
14       done
15   else
16-    echo -e '"'$DUEXCLIST'"' | \
17+    echo -e "$DUEXCLIST" | \
18     du -hs ${DUEXCFLAG} $ROOT | \
19     awk '{ FS="\t"; $0=$0; print $1"\t"$2 }' \
20     >> ${LOGFILE}