From 72c7624c2050007686f93afae4d7a3f7b16a62ae Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 26 Apr 2023 16:36:14 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 6c785866..171a1bd7 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -580,7 +580,7 @@ STATUS(){ echo -en " ${pname}$spc: " fi - [[ "${partition}" =~ *"root"* ]] && prt='/' || prt=${partition} + [[ "${partition}" == *"root"* ]] && prt="/" || prt=${partition} freespace=`${NCMD} df -hPBM ${prt} | awk '{print $4}' |tail -1|sed 's/M$//g'` >/dev/null 2>&1 if [ "${freespace}" -le "1000" ]; then