fix: use set -E to trip the traps...

but it doesn't work on while loops, so we ensure there too
This commit is contained in:
f 2024-06-14 18:23:45 -03:00
parent af1549c142
commit 67ca76f7f1
No known key found for this signature in database

View file

@ -37,6 +37,8 @@ for SIG in 1 2 3 6 9 14 15; do
trap "ensure ${SIG}" ${SIG} trap "ensure ${SIG}" ${SIG}
done done
set -E
case $1 in case $1 in
# Renew certificates, trust in certbot's algorithms # Renew certificates, trust in certbot's algorithms
renew) renew)
@ -106,7 +108,8 @@ case $1 in
--webroot \ --webroot \
--agree-tos \ --agree-tos \
--webroot-path /var/lib/letsencrypt \ --webroot-path /var/lib/letsencrypt \
-d "${domain}" || break -d "${domain}" || ensure $?
touch "${updated}" touch "${updated}"
done done
esac esac