[Libreoffice-commits] .: download

Robert Nagy rnagy at kemper.freedesktop.org
Wed Dec 1 01:59:19 PST 2010


 download |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 5efe5d08b5decd1b965d94a74db40cb0bcf0e7e1
Author: Robert Nagy <robert at openbsd.org>
Date:   Wed Dec 1 10:58:54 2010 +0100

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

diff --git a/download b/download
index a17a1e4..690d82d 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
 


More information about the Libreoffice-commits mailing list