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

This commit is contained in:
Philip 2015-01-19 18:36:11 +00:00
parent 6ccf6917e4
commit 646f8c4036

View file

@ -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}