From 8dad534464e07dd418d9f63848ffc3c15095a41e Mon Sep 17 00:00:00 2001 From: Tim Caswell Date: Thu, 3 Nov 2011 16:19:26 -0500 Subject: [PATCH] Remove broken wget emulation --- nvm.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/nvm.sh b/nvm.sh index e9aa070..be3d1ab 100755 --- a/nvm.sh +++ b/nvm.sh @@ -12,20 +12,8 @@ fi # Emulate curl with wget, if necessary if [ ! `which curl` ]; then - if [ `which wget` ]; then - curl() { - ARGS="$* " - ARGS=${ARGS/-s /-q } - ARGS=${ARGS/--progress-bar /} - ARGS=${ARGS/-C - /-c } - ARGS=${ARGS/-o /-O } - - wget $ARGS - } - else - NOCURL='nocurl' - curl() { echo 'Need curl or wget to proceed.' >&2; } - fi + NOCURL='nocurl' + curl() { echo 'Need curl to proceed.' >&2; } fi # Expand a version using the version cache