1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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