diff options
author | dreamscached | 2021-10-20 17:24:07 +0200 |
---|---|---|
committer | dreamscached | 2021-10-20 17:24:07 +0200 |
commit | a097c15e9cdadf0a30f4497b37fbe53be8ddf45a (patch) | |
tree | dc0652419180d54d1ab4db1b18ad3af4e122b805 | |
parent | 1d917fd274cc5a16718b48f16f11e5ee2d86501b (diff) | |
download | aur-a097c15e9cdadf0a30f4497b37fbe53be8ddf45a.tar.gz |
upgrade.sh: fail on non-OK HTTP code
-rwxr-xr-x | upgrade.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/upgrade.sh b/upgrade.sh index 80dbf1f3ad84..557e11f1d88b 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -14,7 +14,7 @@ tmp="$(mktemp)" cleanup() { rm -f "$tmp"; } trap cleanup EXIT -curl -sL "${source[0]}" -o "$tmp" +curl -fsL "${source[0]}" -o "$tmp" sum="$(sha256sum "$tmp" | cut -c -64)" cleanup |