HADOOP-13012. yetus-wrapper should fail sooner when download fails (Steven Wong via aw)

This commit is contained in:
Allen Wittenauer 2016-04-30 12:18:04 -07:00
parent 2753185a01
commit c7484eb541
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ if [[ $? != 0 ]]; then
fi
if [[ -n "${CURLBIN}" ]]; then
"${CURLBIN}" -s -L -O "${BASEURL}/${TARBALL}.gz"
"${CURLBIN}" -f -s -L -O "${BASEURL}/${TARBALL}.gz"
if [[ $? != 0 ]]; then
yetus_error "ERROR: yetus-dl: unable to download ${BASEURL}/${TARBALL}.gz"
exit 1