Browse Source

fix off by one

master
Nathan Rini 6 years ago committed by Harald Hoyer
parent
commit
fb3d292800
  1. 2
      modules.d/90livenet/livenetroot.sh

2
modules.d/90livenet/livenetroot.sh

@ -30,7 +30,7 @@ do @@ -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

Loading…
Cancel
Save