fix shellcheck failures in ./hack/jenkins/...

This commit is contained in:
aaa
2019-03-21 05:30:11 -04:00
parent aad83d1e49
commit 64f8f30c07
4 changed files with 18 additions and 11 deletions

View File

@@ -21,7 +21,12 @@ set -o xtrace
retry() {
for i in {1..5}; do
"$@" && return 0 || sleep "${i}"
if "$@"
then
return 0
else
sleep "${i}"
fi
done
"$@"
}