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