mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
Improving syntax for bash scripts
This commit is contained in:
@@ -21,7 +21,7 @@ set -o xtrace
|
||||
|
||||
retry() {
|
||||
for i in {1..5}; do
|
||||
"$@" && return 0 || sleep $i
|
||||
"$@" && return 0 || sleep "${i}"
|
||||
done
|
||||
"$@"
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ set -o xtrace
|
||||
|
||||
retry() {
|
||||
for i in {1..5}; do
|
||||
"$@" && return 0 || sleep $i
|
||||
"$@" && return 0 || sleep "${i}"
|
||||
done
|
||||
"$@"
|
||||
}
|
||||
|
Reference in New Issue
Block a user