From df0ee1e87f38a19197e0cce111c52ab193052760 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 15 Nov 2016 15:20:40 +0100 Subject: Using curl with --fail option to abort in case of server/url errors. Signed-off-by: Daniel Baumann --- share/scripts/curl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') 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}" -- cgit v1.2.3