diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 93eb46d3..d5e446ff 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1051,6 +1051,7 @@ CHECK_NPMCERTS(){ c=0; cw=35; spc='' spc1=`expr ${cw} - ${#SUBJECT}` until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + [ ${DAYS} -lt 0 ] && spc=`expr $spc -1` if [ ${DAYS} -lt 24 ]; then echo "${SUBJECT}:${spc}${DAYS} days remaining"