diff options
author | Robert Nagy <robert@openbsd.org> | 2010-12-01 10:58:54 +0100 |
---|---|---|
committer | Robert Nagy <robert@openbsd.org> | 2010-12-01 10:58:54 +0100 |
commit | 441372c6c33390594d6df22d7623ddf8db3fbab1 (patch) | |
tree | 0529c3bb845a7dd21f58db7fdf2df1b95a602e9d /download | |
parent | d2e91b8732b2e3b8b41333c09894deb5967c71c5 (diff) |
Do not try to break 2 levels if ther is only one loop to break
Diffstat (limited to 'download')
-rwxr-xr-x | download | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -61,7 +61,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 wget=$i echo found wget: $wget - break 2 + break fi done @@ -74,7 +74,7 @@ if [ -z "$wget" ]; then if [ -x $i ]; then curl=$i echo found curl: $curl - break 2 + break fi done fi @@ -94,7 +94,7 @@ for i in md5 md5sum /usr/local/bin/md5sum gmd5sum /usr/sfw/bin/md5sum /opt/sfw/b if [ $ret -eq 0 ]; then md5sum=$i echo found md5sum: $md5sum - break 2 + break fi done |