Update nodemgmt-scripts.sh

This commit is contained in:
2019-12-12 23:41:01 -06:00
parent a925e9c2ef
commit 200ac68721

View File

@@ -380,7 +380,8 @@ STATUS(){
fi
declare -A partitions
partitions=`${NCMD} df -hBM | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; do echo $output | awk '{ print $2 }'; done;`
partitions=(`echo ${partitions[*]}`)
partitions=`echo ${partitions[*]}`
partitions=(${partitions})
for partition in "${partitions[@]}"; do
if [ "${partition}" != "udev" ]; then
freespace=`${NCMD} df -hPBM ${partition} | awk '{print $5}' |tail -1|sed 's/%$//g'`