From f0690ecc492c45a14ed76870fefc1830e12704a7 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Feb 2019 13:27:02 -0600 Subject: [PATCH] Update test.sh --- test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.sh b/test.sh index da4fffd..bd78f1b 100755 --- a/test.sh +++ b/test.sh @@ -19,8 +19,8 @@ if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remot fi echo -en "${idsCL[LightYellow]}Waiting for certifcate replication between the nodes...${idsCL[Default]}" -until [ `ssh root@10.5.10.52 "cat /etc/letsencrypt/live/test2.scity.us/cert.pem" | diff - /etc/letsencrypt/live/test2.scity.us/cert.pem` ]; do - echo -e "" +until [ ${same} = 0 ]; do + same=`ssh root@10.5.10.52 "cat /etc/letsencrypt/live/test2.scity.us/cert.pem" | diff - /etc/letsencrypt/live/test2.scity.us/cert.pem` done #sleep 20