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