Don't skip source disk use report when INCLIST unconfigured
This commit is contained in:
parent
c12bca41e0
commit
6ccf6917e4
1 changed files with 18 additions and 8 deletions
|
|
@ -372,6 +372,9 @@ esac
|
|||
DUEXCLIST="${DUEXCLIST}${exclude}\n"
|
||||
done
|
||||
|
||||
# if $INCLIST non zero then itterate through it for df readings, else just df $ROOT
|
||||
# in both cases consider the excluded directories
|
||||
if [ ! -z "$INCLIST" ]; then
|
||||
for include in ${INCLIST[@]}
|
||||
do
|
||||
echo -e '"'$DUEXCLIST'"' | \
|
||||
|
|
@ -379,6 +382,13 @@ esac
|
|||
awk '{ FS="\t"; $0=$0; print $1"\t"$2 }' \
|
||||
>> ${LOGFILE}
|
||||
done
|
||||
else
|
||||
echo -e '"'$DUEXCLIST'"' | \
|
||||
du -hs ${DUEXCFLAG} $ROOT | \
|
||||
awk '{ FS="\t"; $0=$0; print $1"\t"$2 }' \
|
||||
>> ${LOGFILE}
|
||||
fi
|
||||
|
||||
echo >> ${LOGFILE}
|
||||
|
||||
# Restore IFS
|
||||
|
|
|
|||
Loading…
Reference in a new issue