diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index f6a0b59b..9c49e4b1 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -380,12 +380,13 @@ 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[*]}` - echo $partitions; + partitions=(`echo ${partitions[*]}`) for partition in "${partitions[@]}"; do - freespace=`${NCMD} df -hPBM ${partition} | awk '{print $5}' |tail -1|sed 's/%$//g'` - echo -en " ${partition}$spc: " - echo -e "${idsCL[Green]}${freespace}${idsCL[Default]}" + if [ "${partition}" != "udev" ]; then + freespace=`${NCMD} df -hPBM ${partition} | awk '{print $5}' |tail -1|sed 's/%$//g'` + echo -en " ${partition}$spc: " + echo -e "${idsCL[Green]}${freespace}${idsCL[Default]}" + fi done