summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-11-15 14:20:40 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-11-22 14:29:29 +0000
commitdf0ee1e87f38a19197e0cce111c52ab193052760 (patch)
tree999b88facf4c97ecba405d85c29e0457f88a9624
parentAdding runtime detection for http2 option in curl create script. (diff)
downloadcompute-tools-df0ee1e87f38a19197e0cce111c52ab193052760.tar.xz
compute-tools-df0ee1e87f38a19197e0cce111c52ab193052760.zip
Using curl with --fail option to abort in case of server/url errors.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-xshare/scripts/curl2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/scripts/curl b/share/scripts/curl
index feaa1ba..6a9f784 100755
--- a/share/scripts/curl
+++ b/share/scripts/curl
@@ -147,7 +147,7 @@ then
CURL_OPTIONS="${CURL_OPTIONS} --https"
fi
-curl --location --progress-bar --user-agent container-tools/${VERSION} ${CURL_OPTIONS} \
+curl --fail --location --progress-bar --user-agent container-tools/${VERSION} ${CURL_OPTIONS} \
"${SERVER}/${IMAGE}" -o "${CACHE}/${IMAGE}"
echo "Unpacking ${IMAGE}"