From 701f0e6498b014b36f0d97cc1c553ec905382f6c Mon Sep 17 00:00:00 2001 From: Andrew Hurley Date: Sun, 22 Aug 2021 17:41:59 +1000 Subject: [PATCH] Put error check back in. --- sync.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sync.sh b/sync.sh index 3306e2d..92bc1ca 100644 --- a/sync.sh +++ b/sync.sh @@ -77,6 +77,10 @@ while true; do if sslmate download --all; then echo "$(date) Downloaded new certificates! Touch NEW in 'keys' directory" touch /etc/sslmate/certs/NEW + else + if [[ "$?" != "10" ]]; then + echo "sslmate error" + exit fi # Sleep