Skip to content

Commit

Permalink
Remove broken wget emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Nov 3, 2011
1 parent 4692f49 commit 8dad534
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8dad534

Please sign in to comment.