From 62d5d7766e0e705311462046f4560b9e1be707ff Mon Sep 17 00:00:00 2001 From: Jack McKernan Date: Sun, 3 Jan 2021 01:27:43 -0500 Subject: [PATCH] Handle curl failures --- gstreamer/update.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gstreamer/update.sh b/gstreamer/update.sh index 6052b24..82c75dc 100755 --- a/gstreamer/update.sh +++ b/gstreamer/update.sh @@ -1,6 +1,7 @@ #!/bin/bash set -e +set -o pipefail echo source ../common.sh @@ -32,9 +33,9 @@ echo "x86 Download URL: ${download_url}" echo "x64 Download URL: ${download_url_64}" echo -# Extract the checksums -checksum=$(curl -s "${download_url}.sha256sum" | cut -d ' ' -f 1) -checksum_64=$(curl -s "${download_url_64}.sha256sum" | cut -d ' ' -f 1) +echo "Fetching checksums..." +checksum=$(curl --fail --silent --show-error "${download_url}.sha256sum" | cut -d ' ' -f 1) +checksum_64=$(curl --fail --silent --show-error "${download_url_64}.sha256sum" | cut -d ' ' -f 1) echo "x86 Checksum: ${checksum}" echo "x64 Checksum: ${checksum_64}"