From b6952ef76f5cf5a1743cf6e9580766e8e5d2d907 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 4 Feb 2019 23:06:52 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 547f17ab..2493477c 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -97,9 +97,11 @@ LISTCERTS(){ if [ "${#SUBJECTNAMES[*]}" -gt 1 ]; then anid=1 for ALTNAME in "${SUBJECTNAMES[@]}"; do - if [ "${anid}" = 1 ]; then alttitle='Alternate Subject:'; else alttitle=' '; fi - echo -e "${alttitle} ${idsCL[LightCyan]}${ALTNAME}${idsCL[Default]}" - anid=`expr $anid + 1` + if [ "${ALTNAME}" != "${SUBJECT}"]; then + if [ "${anid}" = 1 ]; then alttitle='Alternate Subject(s):'; else alttitle=' '; fi + echo -e "${alttitle} ${idsCL[LightCyan]}${ALTNAME}${idsCL[Default]}" + anid=`expr $anid + 1` + fi done fi if [ $DUEIN -gt $CERTEXPIRE ]; then