Kaydet (Commit) 6e6543df authored tarafından Robert Nagy's avatar Robert Nagy

Do not try to break 2 levels if ther is only one loop to break

üst c9eaa19f
...@@ -56,7 +56,7 @@ for i in wget /usr/bin/wget /usr/local/bin/wget /usr/sfw/bin/wget /opt/sfw/bin/w ...@@ -56,7 +56,7 @@ for i in wget /usr/bin/wget /usr/local/bin/wget /usr/sfw/bin/wget /opt/sfw/bin/w
if [ $ret -eq 0 ]; then if [ $ret -eq 0 ]; then
wget=$i wget=$i
echo found wget: $wget echo found wget: $wget
break 2 break
fi fi
done done
...@@ -69,7 +69,7 @@ if [ -z "$wget" ]; then ...@@ -69,7 +69,7 @@ if [ -z "$wget" ]; then
if [ -x $i ]; then if [ -x $i ]; then
curl=$i curl=$i
echo found curl: $curl echo found curl: $curl
break 2 break
fi fi
done done
fi fi
...@@ -89,7 +89,7 @@ for i in md5 md5sum /usr/local/bin/md5sum gmd5sum /usr/sfw/bin/md5sum /opt/sfw/b ...@@ -89,7 +89,7 @@ for i in md5 md5sum /usr/local/bin/md5sum gmd5sum /usr/sfw/bin/md5sum /opt/sfw/b
if [ $ret -eq 0 ]; then if [ $ret -eq 0 ]; then
md5sum=$i md5sum=$i
echo found md5sum: $md5sum echo found md5sum: $md5sum
break 2 break
fi fi
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment