r2615 - jhalfs/trunk/common

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Wed May 3 20:32:05 PDT 2006


Author: georgeb
Date: 2006-05-02 06:16:37 -0600 (Tue, 02 May 2006)
New Revision: 2615

Modified:
   jhalfs/trunk/common/common-functions
Log:
corrected traces in download function, was showing false failures

Modified: jhalfs/trunk/common/common-functions
===================================================================
--- jhalfs/trunk/common/common-functions	2006-05-02 06:49:44 UTC (rev 2614)
+++ jhalfs/trunk/common/common-functions	2006-05-02 12:16:37 UTC (rev 2615)
@@ -689,13 +689,11 @@
       set -e
 
       if [ ! -f $FILE ] ; then
-        wget $URL1 || wget $URL2 || \
-        echo "${RED}$FILE not found on the servers${OFF}"
-        echo "$FILE not found on the servers" >> MISSING_FILES.DMP
+        wget $URL1 || wget $URL2 || (echo "${RED}$FILE not found on the servers${OFF}" &&
+                                     echo "$FILE not found on the servers 1" >> MISSING_FILES.DMP )
       elif [[ "$NOMD5" != "1" ]] && ! echo "$MD5" | md5sum -c - ; then
-        wget -N $URL1 || wget -N $URL2 || \
-        echo "${RED}$FILE not found on the servers${OFF}"
-        echo "$FILE not found on the servers" >> MISSING_FILES.DMP
+        wget -N $URL1 || wget -N $URL2 || ( echo "${RED}$FILE not found on the servers${OFF}" &&
+                                            echo "$FILE not found on the servers 2" >> MISSING_FILES.DMP )
       fi
 
       if [[ "$NOMD5" != "1" ]] && ! echo "$MD5" | md5sum -c - ; then




More information about the alfs-log mailing list