From 200ac687218f3839aa9bb62b001d88d20758739c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 12 Dec 2019 23:41:01 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'`