]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix off by one
authorNathan Rini <nate@ucar.edu>
Thu, 4 Oct 2018 16:15:47 +0000 (10:15 -0600)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 25 Oct 2019 09:37:43 +0000 (11:37 +0200)
modules.d/90livenet/livenetroot.sh

index d9b475581260f6dc74c1ebf6d170cde38b1a1786..747a0706ac17b8646770f22f376f86155397fc83 100755 (executable)
@@ -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