Match wget errors

This commit is contained in:
Alex Malinovich 2017-07-19 16:19:44 +02:00
commit 146827b737

View file

@ -351,7 +351,7 @@ fi
if [ "${LISTOPTS}" = "yes" ]; then if [ "${LISTOPTS}" = "yes" ]; then
wgetresults="$(wget "${URL_DOWNLOAD}" -o "${FILE_WGETLOG}" -O -)" wgetresults="$(wget "${URL_DOWNLOAD}" -o "${FILE_WGETLOG}" -O -)"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
error "Unable to retrieve available builds" error "Unable to retrieve available builds due to a wget error, run with -v for details"
[ "$VERBOSE" = "yes" ] && cat "${FILE_WGETLOG}" [ "$VERBOSE" = "yes" ] && cat "${FILE_WGETLOG}"
exit 1 exit 1
fi fi