From c7b24044282c9c575c3abf6c274d64b4e140896f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Feb 2019 12:19:52 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 6d4d0d1b..b9dc9de0 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -152,7 +152,12 @@ LISTCERTS(){ spc="${spc} " c=`expr $c + 1` done - echo -e "${SUBJECT}${spc}$(date -d @${CERTEXPIRE} '+%m-%d-%Y') ${SUBJECTNAMES}" + if [ $DUEIN -gt $CERTEXPIRE ]; then + date="${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}" + else + date="${idsCL[Green]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Default]}" + fi + echo -e "${idsCL[Cyan]}${SUBJECT}${spc}${date} ${idsCL[Cyan]}${SUBJECTNAMES}${idsCL[Default]}" echo done