Skip to content

Commit

Permalink
Handle curl failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcker committed Jan 3, 2021
1 parent 00fe0c0 commit 62d5d77
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gstreamer/update.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

set -e
set -o pipefail
echo

source ../common.sh
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit 62d5d77

Please sign in to comment.