Remove broken wget emulation

master
Tim Caswell 2011-11-03 16:19:26 -05:00
parent 4692f496da
commit 8dad534464
1 changed files with 2 additions and 14 deletions

14
nvm.sh
View File

@ -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
curl() { echo 'Need curl to proceed.' >&2; }
fi
# Expand a version using the version cache