mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-09-17 14:41:26 +02:00
Swallow all type
output
This commit is contained in:
parent
5e2ff56996
commit
83b9ed07d6
1 changed files with 3 additions and 3 deletions
|
@ -90,9 +90,9 @@ make_package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch_url() {
|
fetch_url() {
|
||||||
if type curl 2>/dev/null; then
|
if type curl &>/dev/null; then
|
||||||
curl "$@"
|
curl "$@"
|
||||||
elif type wget 2>/dev/null; then
|
elif type wget &>/dev/null; then
|
||||||
wget -O- "$@"
|
wget -O- "$@"
|
||||||
else
|
else
|
||||||
echo "error: please install \`curl\` or \`wget\` and try again" >&2
|
echo "error: please install \`curl\` or \`wget\` and try again" >&2
|
||||||
|
@ -117,7 +117,7 @@ fetch_git() {
|
||||||
|
|
||||||
echo "Cloning ${git_url}..." >&2
|
echo "Cloning ${git_url}..." >&2
|
||||||
|
|
||||||
if type git 2>/dev/null; then
|
if type git &>/dev/null; then
|
||||||
git clone --depth 1 --branch "$git_ref" "$git_url" "${package_name}" >&4 2>&1
|
git clone --depth 1 --branch "$git_ref" "$git_url" "${package_name}" >&4 2>&1
|
||||||
else
|
else
|
||||||
echo "error: please install \`git\` and try again" >&2
|
echo "error: please install \`git\` and try again" >&2
|
||||||
|
|
Loading…
Reference in a new issue