From 646f8c4036136257a54d8e3a28f9ea6cae49782e Mon Sep 17 00:00:00 2001 From: Philip Date: Mon, 19 Jan 2015 18:36:11 +0000 Subject: [PATCH] Excluded directories were no excluded from source disk usage report - quotes issue --- duplicity-backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/duplicity-backup.sh b/duplicity-backup.sh index a545f34..5404051 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -377,13 +377,13 @@ get_source_file_size() if [ ! -z "$INCLIST" ]; then for include in ${INCLIST[@]} do - echo -e '"'$DUEXCLIST'"' | \ + echo -e "$DUEXCLIST" | \ du -hs ${DUEXCFLAG} ${include} | \ awk '{ FS="\t"; $0=$0; print $1"\t"$2 }' \ >> ${LOGFILE} done else - echo -e '"'$DUEXCLIST'"' | \ + echo -e "$DUEXCLIST" | \ du -hs ${DUEXCFLAG} $ROOT | \ awk '{ FS="\t"; $0=$0; print $1"\t"$2 }' \ >> ${LOGFILE}