r3516 - jhalfs/trunk/common/libs

thomasp at linuxfromscratch.org thomasp at linuxfromscratch.org
Mon Oct 6 09:27:36 PDT 2008


Author: thomasp
Date: 2008-10-06 10:27:36 -0600 (Mon, 06 Oct 2008)
New Revision: 3516

Modified:
   jhalfs/trunk/common/libs/func_download_pkgs
Log:
Use continue instead of return, continue allows the loop to continue from the beginning instead of jumping completely out of the function.

Modified: jhalfs/trunk/common/libs/func_download_pkgs
===================================================================
--- jhalfs/trunk/common/libs/func_download_pkgs	2008-09-04 13:52:33 UTC (rev 3515)
+++ jhalfs/trunk/common/libs/func_download_pkgs	2008-10-06 16:27:36 UTC (rev 3516)
@@ -76,8 +76,8 @@
     fi
 
     # Deal with udev and bootscripts m5sum issue
-    [[ $BOOKMD5 = "BOOTSCRIPTS-MD5SUM" ]] && return
-    [[ $BOOKMD5 = "UDEV-MD5SUM" ]]        && return
+    [[ $BOOKMD5 = "BOOTSCRIPTS-MD5SUM" ]] && continue
+    [[ $BOOKMD5 = "UDEV-MD5SUM" ]]        && continue
 
       # IF the md5sum does not match the existing files
     if ! echo "$MD5" | md5sum -c - >/dev/null ; then




More information about the alfs-log mailing list