From b2f118e6abd3d3c951dd7d02f82741b8c1fef4a9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 26 Apr 2023 18:41:27 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 64cb7cee..14c21786 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -573,16 +573,14 @@ STATUS(){ ii=$((${i}*3)) pname=`echo "${DRIVEINFO[${ii}]}" | awk -F'/' ' { print $NF } '` >/dev/null 2>&1 pname=${pname#*vg-} - if [ "${ST_ACTION}" != "check" ]; then - c=0; cw=20; spc='' - spc1=${cw}-${#pname} - until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done - echo -en " ${pname}$spc: " - fi - if [ ${DRIVEINFO[$((${ii}+1))]//M/} -gt 1024 ]; then freespace=${DRIVEINFO[$((${ii}+2))]//M/} - echo "F: ${freespace}" + if [ "${ST_ACTION}" != "check" ]; then + c=0; cw=20; spc='' + spc1=${cw}-${#pname} + until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + echo -en " ${pname}$spc: " + fi if [[ ${freespace} -gt 1024 ]]; then fsgb=$(bc <<< "scale=2; ${freespace}/1024") fsdsp="${fsgb} GB"