Fix retry on shippable setup. (#61)

This commit is contained in:
Felix Fontein
2020-03-29 11:20:29 +02:00
committed by GitHub
parent 66267a50b3
commit 3c4e98cce2

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