We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
type
1 parent 5e2ff56 commit 83b9ed0Copy full SHA for 83b9ed0
bin/ruby-build
@@ -90,9 +90,9 @@ make_package() {
90
}
91
92
fetch_url() {
93
- if type curl 2>/dev/null; then
+ if type curl &>/dev/null; then
94
curl "$@"
95
- elif type wget 2>/dev/null; then
+ elif type wget &>/dev/null; then
96
wget -O- "$@"
97
else
98
echo "error: please install \`curl\` or \`wget\` and try again" >&2
@@ -117,7 +117,7 @@ fetch_git() {
117
118
echo "Cloning ${git_url}..." >&2
119
120
- if type git 2>/dev/null; then
+ if type git &>/dev/null; then
121
git clone --depth 1 --branch "$git_ref" "$git_url" "${package_name}" >&4 2>&1
122
123
echo "error: please install \`git\` and try again" >&2
0 commit comments