From 58d9a6184d6cd66c34b3fbae0ccc64b57d208cac Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 12 Dec 2019 23:43:28 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 42121fbb..3c2bf7bf 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -385,6 +385,9 @@ STATUS(){ for partition in "${partitions3[@]}"; do if [ "${partition}" != "udev" ]; then freespace=`${NCMD} df -hPBM ${partition} | awk '{print $5}' |tail -1|sed 's/%$//g'` + c=0; cw=40; spc='' + spc1=${cw}-${#partition} + until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en " ${partition}$spc: " echo -e "${idsCL[Green]}${freespace}${idsCL[Default]}" fi