Fix retry on shippable setup. (#61)

pull/64/head
Felix Fontein 2020-03-29 11:20:29 +02:00 committed by GitHub
parent 66267a50b3
commit 3c4e98cce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -29,8 +29,10 @@ python -V
function retry
{
for repetition in 1 2 3; do
set +e
"$@"
result=$?
set -e
if [ ${result} == 0 ]; then
return ${result}
fi