corrected traces in download function, was showing false failures
This commit is contained in:
parent
8de111fa46
commit
585794e115
1 changed files with 4 additions and 6 deletions
|
@ -689,13 +689,11 @@ get_sources() { # Download file, write name to MISSING_FILES.DMP if
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ ! -f $FILE ] ; then
|
if [ ! -f $FILE ] ; then
|
||||||
wget $URL1 || wget $URL2 || \
|
wget $URL1 || wget $URL2 || (echo "${RED}$FILE not found on the servers${OFF}" &&
|
||||||
echo "${RED}$FILE not found on the servers${OFF}"
|
echo "$FILE not found on the servers 1" >> MISSING_FILES.DMP )
|
||||||
echo "$FILE not found on the servers" >> MISSING_FILES.DMP
|
|
||||||
elif [[ "$NOMD5" != "1" ]] && ! echo "$MD5" | md5sum -c - ; then
|
elif [[ "$NOMD5" != "1" ]] && ! echo "$MD5" | md5sum -c - ; then
|
||||||
wget -N $URL1 || wget -N $URL2 || \
|
wget -N $URL1 || wget -N $URL2 || ( echo "${RED}$FILE not found on the servers${OFF}" &&
|
||||||
echo "${RED}$FILE not found on the servers${OFF}"
|
echo "$FILE not found on the servers 2" >> MISSING_FILES.DMP )
|
||||||
echo "$FILE not found on the servers" >> MISSING_FILES.DMP
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$NOMD5" != "1" ]] && ! echo "$MD5" | md5sum -c - ; then
|
if [[ "$NOMD5" != "1" ]] && ! echo "$MD5" | md5sum -c - ; then
|
||||||
|
|
Reference in a new issue