From 7425ae9eb4627567d4844fc445f9256a14783e3e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 11 Feb 2019 12:33:46 -0600 Subject: [PATCH] Update test.sh --- test.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/test.sh b/test.sh index ab95a9d..ca861a6 100755 --- a/test.sh +++ b/test.sh @@ -19,6 +19,15 @@ if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remot exit 0 fi -toterrtime=`date +%s`-$(stat -c %Y /opt/idssys/nodemgmt/10.5.10.53-haproxy.down) -#show_time ${toterrtime} -echo "has been down for $(SHOW_TIME ${toterrtime})" + + + +IFS=$'\n' +for LINE in `egrep -v '(^#|^$)' ${FOLDER}/ssl-cert-check/ssldomains` +do + HOST=${LINE%% *} + PORT=${LINE#* } + IFS=" " + echo "${HOST} - ${PORT}" +done +unset IFS