Skip to content

Commit 39ffead

Browse files
kpougetopenshift-merge-bot[bot]
authored andcommitted
crc-systemd-common: improve the syntax
1 parent ad31fbd commit 39ffead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemd/crc-systemd-common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function wait_for_resource() {
66
local wait_sec=${3:-5}
77
until oc get "$1" > /dev/null 2>&1
88
do
9-
[ $retry == $max_retry ] && exit 1
9+
[[ "$retry" -ge "$max_retry" ]] && exit 1
1010
sleep $wait_sec
1111
((retry++))
1212
done

0 commit comments

Comments
 (0)