From: Nathan Rini Date: Thu, 4 Oct 2018 16:15:47 +0000 (-0600) Subject: fix off by one X-Git-Tag: 050~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb3d292800414560033663d4d5595d0422dca85d;p=thirdparty%2Fdracut.git fix off by one --- diff --git a/modules.d/90livenet/livenetroot.sh b/modules.d/90livenet/livenetroot.sh index d9b475581..747a0706a 100755 --- a/modules.d/90livenet/livenetroot.sh +++ b/modules.d/90livenet/livenetroot.sh @@ -30,7 +30,7 @@ do if [ ! -z "$imgfile" -a -s "$imgfile" ]; then break else - if [ $i -eq $RETRIES ]; then + if [ $i -ge $RETRIES ]; then warn "failed to download live image after $i attempts." exit 1 fi