소스 검색

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

Allen Wittenauer 9 년 전
부모
커밋
c7484eb541
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dev-support/bin/yetus-wrapper

+ 1 - 1
dev-support/bin/yetus-wrapper

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