diff --git a/itests/pom.xml b/itests/pom.xml index a782cd2..4221e7a 100644 --- a/itests/pom.xml +++ b/itests/pom.xml @@ -90,13 +90,14 @@ curl -Sso $DOWNLOAD_DIR/$tarName $url else local md5File="$tarName".md5sum - curl -Sso $DOWNLOAD_DIR/$md5File "$url".md5sum - cd $DOWNLOAD_DIR - if type md5sum >/dev/null && ! md5sum -c $md5File; then - curl -Sso $DOWNLOAD_DIR/$tarName $url || return 1 - fi + if curl -fSso $DOWNLOAD_DIR/$md5File "$url".md5sum; then + cd $DOWNLOAD_DIR + if type md5sum >/dev/null && ! md5sum -c $md5File; then + curl -Sso $DOWNLOAD_DIR/$tarName $url || return 1 + fi - cd - + cd - + fi fi tar -zxf $DOWNLOAD_DIR/$tarName -C $BASE_DIR mv $BASE_DIR/spark-${spark.version}-bin-hadoop2-without-hive $BASE_DIR/$finalName