From 65dc049ff2913149b854bd78b77a6990f8a9ffc3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 11 Feb 2019 09:09:10 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 89ea9055..40dc919f 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -601,7 +601,7 @@ LISTCERTS(){ CERTEXPIRE=$(date -d "$(: | openssl x509 -in ${certdir}/cert.pem -text | grep 'Not After' |awk '{print $4,$5,$7}')" '+%s'); DAYS=14; DUEIN=$(($(date +%s) + (86400*$DAYS))); - SUBJECTNAMES=`awk '{for(i=1; i<=NF; i++) if($i==", ") if(++count%3==0) $i=",\n"}1' ${SUBJECTNAMES}` + awk '{for(i=1; i<=NF; i++) if($i==", ") if(++count%3==0) $i=",\n"}1' ${SUBJECTNAMES} declare -i cw; declare -i spc1; declare -i c c=0; cw=30; spc=''