Skip to content

Commit

Permalink
Swallow all type output
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed Apr 23, 2012
1 parent 5e2ff56 commit 83b9ed0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ make_package() {
}

fetch_url() {
if type curl 2>/dev/null; then
if type curl &>/dev/null; then
curl "$@"
elif type wget 2>/dev/null; then
elif type wget &>/dev/null; then
wget -O- "$@"
else
echo "error: please install \`curl\` or \`wget\` and try again" >&2
Expand All @@ -117,7 +117,7 @@ fetch_git() {

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
else
echo "error: please install \`git\` and try again" >&2
Expand Down

0 comments on commit 83b9ed0

Please sign in to comment.