Browse Source

supress du error

pull/820/merge
Daniel Gibbs 9 years ago
parent
commit
34c34c48f8
  1. 2
      lgsm/functions/info_distro.sh

2
lgsm/functions/info_distro.sh

@ -70,7 +70,7 @@ usedspace=$(df -hP "${rootdir}" | grep -v "Filesystem" | awk '{print $3}')
availspace=$(df -hP "${rootdir}" | grep -v "Filesystem" | awk '{print $4}')
# used space in serverfiles dir.
filesdirdu=$(du -sh "${filesdir}" | awk '{print $1}')
filesdirdu=$(du -sh "${filesdir}" 2> /dev/null | awk '{print $1}')
if [ -z ${filesdirdu} ]; then
filesdirdu="0M"
fi

Loading…
Cancel
Save