Remove broken wget emulation
parent
4692f496da
commit
8dad534464
14
nvm.sh
14
nvm.sh
|
@ -12,20 +12,8 @@ fi
|
||||||
|
|
||||||
# Emulate curl with wget, if necessary
|
# Emulate curl with wget, if necessary
|
||||||
if [ ! `which curl` ]; then
|
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'
|
NOCURL='nocurl'
|
||||||
curl() { echo 'Need curl or wget to proceed.' >&2; }
|
curl() { echo 'Need curl to proceed.' >&2; }
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Expand a version using the version cache
|
# Expand a version using the version cache
|
||||||
|
|
Loading…
Reference in New Issue