Update nodemgmt-scripts.sh

This commit is contained in:
2023-01-29 10:08:17 -06:00
parent 1eb4d2b986
commit a3718e2204

View File

@@ -1051,7 +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`
[ ${DAYS} -lt 0 ] && spc=${spc::-1}
if [ ${DAYS} -lt 24 ]; then
echo "${SUBJECT}:${spc}${DAYS} days remaining"