Add sleep 5 secs in retry loop

Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
Hideki Saito 2022-03-12 18:55:15 +09:00
parent a3f702c45e
commit 4cad83c264

View file

@ -48,6 +48,7 @@ function retry
return ${result} return ${result}
fi fi
echo "@* -> ${result}" echo "@* -> ${result}"
sleep 5
done done
echo "Command '@*' failed 3 times!" echo "Command '@*' failed 3 times!"
exit 255 exit 255
@ -74,7 +75,7 @@ else
fi fi
# START: HACK install dependencies # START: HACK install dependencies
#retry ansible-galaxy collection install community.general retry ansible-galaxy collection install community.general
# END: HACK # END: HACK
export PYTHONIOENCODING='utf-8' export PYTHONIOENCODING='utf-8'