From 1c4154dcafda20a31aaddf29fca28a9adb65f4fc Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 11 Feb 2019 12:51:29 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 498c8e94..84935f2c 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -620,7 +620,6 @@ LISTCERTS(){ c=0; cw=30; spc='' spc1=${cw}-${#SUBJECT} - until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done if [ $DUEIN -gt $CERTEXPIRE ]; then date="${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}" else @@ -628,8 +627,12 @@ LISTCERTS(){ fi if [ "${CHECKCERT_DOMAINS[${SUBJECT}]}" = "" ]; then SUBJECT_DISP=${SUBJECT} + until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done else SUBJECT_DISP="${idsBG[Green]}${idsCL[White]}${SUBJECT}${idsBG[Default]}${idsCL[Cyan]}" + spc="${idsBG[Green]}" + until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + spc="${spc}${idsBG[Default]}${idsCL[Cyan]}" fi if [ ${#SUBJECT_NAMES[@]} -lt 4 ]; then echo -e "${idsCL[Cyan]}${SUBJECT_DISP}${spc}${date} ${idsCL[Cyan]}${SUBJECTNAMES}${idsCL[Default]}"