From 6cc8ec1240f86a4741a49365758b3cf0c7f0e7b0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 4 Feb 2019 22:10:45 -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 b4494837..cf0c895c 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -87,7 +87,12 @@ LISTCERTS(){ #DIVIDER true for d in /etc/letsencrypt/live/*/ ; do SUBJECTNAMES=$(openssl x509 -in ${d}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV) - echo "$d = ${SUBJECTNAMES}" + IFS=' ' + SUBJECTNAMES=(${SUBJECTNAMES}) + unset IFS + echo "$d" + declare -p SUBJECTNAMES + echo "" done