diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 270cb8e0..0bf6bfc0 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -94,7 +94,7 @@ LISTCERTS(){ DIVIDER true echo -e "Certificate Subject: ${idsST[Bold]}${idsCL[Cyan]}${SUBJECT}${idsST[Reset]}${idsCL[Default]}" - if [ "${#foo[*]}" -gt 1 ]; then + if [ "${#SUBJECTNAMES[*]}" -gt 1 ]; then anid=1 for ALTNAME in "${SUBJECTNAMES[@]}"; do if [ "${anid}" = 1 ]; then alttitle='Alternate Subject:'; else alttitle=' '; fi