mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 08:42:57 -04:00
reset result before running command because bash short circuits or conditionals
This commit is contained in:
parent
b3d79a777d
commit
8adc888a6c
1 changed files with 1 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ stages:
|
|||
local count=1
|
||||
while [[ "${count}" -le 3 ]]; do
|
||||
# run the command in a way that doesn't disable setting `errexit`
|
||||
result=0
|
||||
"${@}" || result="${?}"
|
||||
if [[ $result -eq 0 ]]; then break; fi
|
||||
count="$((count + 1))"
|
||||
|
|
|
|||
Loading…
Reference in a new issue