summaryrefslogtreecommitdiff
path: root/download
diff options
context:
space:
mode:
authorRobert Nagy <robert@openbsd.org>2010-12-01 10:58:54 +0100
committerRobert Nagy <robert@openbsd.org>2010-12-01 10:58:54 +0100
commit441372c6c33390594d6df22d7623ddf8db3fbab1 (patch)
tree0529c3bb845a7dd21f58db7fdf2df1b95a602e9d /download
parentd2e91b8732b2e3b8b41333c09894deb5967c71c5 (diff)
Do not try to break 2 levels if ther is only one loop to break
Diffstat (limited to 'download')
-rwxr-xr-xdownload6
1 files changed, 3 insertions, 3 deletions
diff --git a/download b/download
index a17a1e48d24c..690d82d8aacc 100755
--- a/download
+++ b/download
@@ -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