From 79510722131485959f5a04f066481f439735adc7 Mon Sep 17 00:00:00 2001 From: Andrew Hurley Date: Tue, 17 Aug 2021 17:44:20 +1000 Subject: [PATCH] Exit on download error --- sync.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sync.sh b/sync.sh index 3306e2d..a048242 100644 --- a/sync.sh +++ b/sync.sh @@ -77,6 +77,9 @@ while true; do if sslmate download --all; then echo "$(date) Downloaded new certificates! Touch NEW in 'keys' directory" touch /etc/sslmate/certs/NEW + else + echo " -- error " + exit 1 fi # Sleep