mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
fix shellcheck failures in ./hack/jenkins/...
This commit is contained in:
@@ -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
|
||||
"$@"
|
||||
}
|
||||
|
Reference in New Issue
Block a user