From 772e175a63194f997a731ab82a26f2d7b6601d11 Mon Sep 17 00:00:00 2001 From: Jay Adkisson Date: Thu, 19 Apr 2012 21:25:10 -0700 Subject: [PATCH] rename get -> fetch_url --- bin/ruby-build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/ruby-build b/bin/ruby-build index b7037d34..7761143d 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -90,11 +90,11 @@ make_package() { } if type curl &>/dev/null; then -get() { curl "$@" ;} +fetch_url() { curl "$@" ;} elif type wget &>/dev/null; then -get() { wget -O- "$@" ;} +fetch_url() { wget -O- "$@" ;} else -get() { echo "curl or wget is required" >&2; exit 1 ;} +fetch_url() { echo "curl or wget is required" >&2; exit 1 ;} fi fetch_tarball() { @@ -102,7 +102,7 @@ fetch_tarball() { local package_url="$2" echo "Downloading ${package_url}..." >&2 - { get "$package_url" > "${package_name}.tar.gz" + { fetch_url "$package_url" > "${package_name}.tar.gz" tar xzvf "${package_name}.tar.gz" } >&4 2>&1 }