From 68ac00a6bc3076ff53fc5b2972150bf3673b7a75 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Feb 2019 12:16:41 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index d218ea82..f7e67125 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -143,11 +143,14 @@ LISTCERTS(){ #echo "" declare -i cw declare -i spc1 + declare -i c + c=1 cw=30 spc1=${cw}-${#SUBJECT} spc='' - for run in {1..10}; do + until [ $c = ${spc1} ]; do spc="${spc} " + c=`expr $c + 1` done echo -e "${SUBJECT}${spc}$(date -d @${CERTEXPIRE} '+%m-%d-%Y') ${SUBJECTNAMES}"