diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 9c49e4b1..3b11bbc9 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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'`