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:
parent
af1549c142
commit
67ca76f7f1
1 changed files with 4 additions and 1 deletions
|
@ -37,6 +37,8 @@ for SIG in 1 2 3 6 9 14 15; do
|
|||
trap "ensure ${SIG}" ${SIG}
|
||||
done
|
||||
|
||||
set -E
|
||||
|
||||
case $1 in
|
||||
# Renew certificates, trust in certbot's algorithms
|
||||
renew)
|
||||
|
@ -106,7 +108,8 @@ case $1 in
|
|||
--webroot \
|
||||
--agree-tos \
|
||||
--webroot-path /var/lib/letsencrypt \
|
||||
-d "${domain}" || break
|
||||
-d "${domain}" || ensure $?
|
||||
|
||||
touch "${updated}"
|
||||
done
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue