mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
scripts: Use curl -f (--fail).
This makes curl exit with nonzero status on HTTP 4xx/5xx errors. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
e373df88e0
commit
47897c76a2
@@ -19,7 +19,7 @@ if ! check_version; then
|
||||
tmpdir="$(mktemp -d)"
|
||||
trap 'rm -r "$tmpdir"' EXIT
|
||||
cd "$tmpdir"
|
||||
curl -LO "https://github.com/koalaman/shellcheck/releases/download/v$version/$tarball"
|
||||
curl -fLO "https://github.com/koalaman/shellcheck/releases/download/v$version/$tarball"
|
||||
sha256sum -c <<<"${sha256[$arch]} $tarball"
|
||||
tar -xJf "$tarball" --no-same-owner --strip-components=1 -C /usr/local/bin "shellcheck-v$version/shellcheck"
|
||||
check_version
|
||||
|
||||
Reference in New Issue
Block a user