Skip to content

Commit 9c33253

Browse files
committed
Fix curl args for silent and script-compatible downloads
1 parent 48c90b6 commit 9c33253

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ if [[ -z ${tarball_url} ]]; then
4545
fi
4646

4747
echo >&2 "Downloading ${tarball_url}"
48-
curl -O "${tarball_url}"
49-
curl -o "sha256" "${tarball_url}.sha256"
48+
curl --silent --fail --show-error --location --remote-name \
49+
--url "${tarball_url}"
50+
curl --silent --fail --show-error --location --output "sha256" \
51+
--url "${tarball_url}.sha256"
5052
sha256=$(< sha256)
5153
sha256sum --check <<< "${sha256} openssl-${version}.tar.gz"
5254

0 commit comments

Comments
 (0)