Skip to content

Commit 9fad70b

Browse files
author
Dinko Dermendzhiev
committed
falsy ((counter++)) needs || true when counter = 0
1 parent 26a67ce commit 9fad70b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/setup-policy-routes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ start)
5656
debug "Waiting for sysfs node to exist for ${iface} (iteration $counter)"
5757
fi
5858
sleep 0.1
59-
((counter++))
59+
((counter++)) || true
6060
if ((counter >= max_wait)); then
6161
error "Timed out waiting for sysfs node for ${iface} after $((counter / 10)) seconds"
6262
exit 1

0 commit comments

Comments
 (0)