mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
curl: Use --fail to catch errors
This commit is contained in:
parent
36c1e3bc5f
commit
a7b12c6bd9
2 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ if [ "$(uname -s)" != "Darwin" ]; then
|
|||
fi
|
||||
|
||||
if command -v curl > /dev/null 2>&1; then
|
||||
fetch() { curl -L "$1" -o "$2"; }
|
||||
fetch() { curl --fail -L "$1" -o "$2"; }
|
||||
elif command -v wget > /dev/null 2>&1; then
|
||||
fetch() { wget "$1" -O "$2"; }
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue