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:
parent
66267a50b3
commit
3c4e98cce2
1 changed files with 2 additions and 0 deletions
|
@ -29,8 +29,10 @@ python -V
|
||||||
function retry
|
function retry
|
||||||
{
|
{
|
||||||
for repetition in 1 2 3; do
|
for repetition in 1 2 3; do
|
||||||
|
set +e
|
||||||
"$@"
|
"$@"
|
||||||
result=$?
|
result=$?
|
||||||
|
set -e
|
||||||
if [ ${result} == 0 ]; then
|
if [ ${result} == 0 ]; then
|
||||||
return ${result}
|
return ${result}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue