mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-09-01 23:01:10 +02:00
Fail on curl download errors
This commit is contained in:
parent
093e3903ca
commit
a2e94128c3
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ make_package() {
|
|||
|
||||
fetch_url() {
|
||||
if type curl &>/dev/null; then
|
||||
curl "$@"
|
||||
curl -f "$@"
|
||||
elif type wget &>/dev/null; then
|
||||
wget -O- "$@"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue