Skip to content

Commit

Permalink
Ensure missing curl/wget/aria2c error message is shown on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Nov 4, 2019
1 parent e2b1da8 commit 0d3e3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ http() {
[ -n "$2" ] || return 1
shift 1

RUBY_BUILD_HTTP_CLIENT="${RUBY_BUILD_HTTP_CLIENT:-$(detect_http_client)}"
RUBY_BUILD_HTTP_CLIENT="${RUBY_BUILD_HTTP_CLIENT:-$(detect_http_client 2>&3)}"
[ -n "$RUBY_BUILD_HTTP_CLIENT" ] || return 1

"http_${method}_${RUBY_BUILD_HTTP_CLIENT}" "$@"
Expand Down

0 comments on commit 0d3e3b8

Please sign in to comment.