You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2016/01/05 23:55:20 UTC

[48/50] incubator-tinkerpop git commit: fail earlier if download of distribution files fails

fail earlier if download of distribution files fails


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/f4be739e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/f4be739e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/f4be739e

Branch: refs/heads/TINKERPOP-1033
Commit: f4be739e7a61920d274834f3b68ed1ccedf633af
Parents: 044b5ed
Author: Daniel Kuppitz <da...@hotmail.com>
Authored: Mon Jan 4 13:08:22 2016 +0100
Committer: Daniel Kuppitz <da...@hotmail.com>
Committed: Mon Jan 4 13:08:22 2016 +0100

----------------------------------------------------------------------
 bin/validate-distribution.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/f4be739e/bin/validate-distribution.sh
----------------------------------------------------------------------
diff --git a/bin/validate-distribution.sh b/bin/validate-distribution.sh
index 16de126..001c17c 100755
--- a/bin/validate-distribution.sh
+++ b/bin/validate-distribution.sh
@@ -71,10 +71,10 @@ if [ "${TYPE}" = "SOURCE" ]; then
 fi
 
 echo -n "* downloading ${COMPONENT} (${ZIP_FILENAME})... "
-curl -Ls ${URL} -o ${ZIP_FILENAME}
+curl -Lsf ${URL} -o ${ZIP_FILENAME} || { echo "Failed to download ${COMPONENT}" ; exit 1; }
 for ext in "asc" "md5" "sha1"
 do
-  curl -Ls ${URL}.${ext} -o ${ZIP_FILENAME}.${ext} || (echo "Failed to download ${COMPONENT} (${ext})" ; exit 1)
+  curl -Lsf ${URL}.${ext} -o ${ZIP_FILENAME}.${ext} || { echo "Failed to download ${COMPONENT} (${ext})" ; exit 1 ; }
 done
 echo "OK"