corrected traces in download function, was showing false failures

This commit is contained in:
George Boudreau 2006-05-02 12:16:37 +00:00
parent 8de111fa46
commit 585794e115

View file

@ -689,13 +689,11 @@ get_sources() { # Download file, write name to MISSING_FILES.DMP if
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