actually don't fail on result

This commit is contained in:
Erica Portnoy 2020-09-25 12:37:37 -07:00
parent c465698b72
commit b3d79a777d

View file

@ -61,8 +61,7 @@ stages:
local count=1
while [[ "${count}" -le 3 ]]; do
# run the command in a way that doesn't disable setting `errexit`
"${@}"
result="${?}"
"${@}" || result="${?}"
if [[ $result -eq 0 ]]; then break; fi
count="$((count + 1))"
sleep 1