From 125168444021e7fc1d951e374a5a43abfe74f4ea Mon Sep 17 00:00:00 2001 From: Geoffrey Huntley Date: Thu, 25 Aug 2011 14:03:13 +1000 Subject: [PATCH] - version detection now works with zsh - curl routine now compatible with zsh - changed curl to use --progress-bar instead of unsafe shorthand (-#) --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index 9a34618..94564e8 100644 --- a/nvm.sh +++ b/nvm.sh @@ -56,7 +56,7 @@ nvm_version() return fi if [ ! "$VERSION" ]; then - VERSION=`(cd $NVM_DIR; \ls -d v${PATTERN}* 2>/dev/null) | sort -t. -k 2,1n -k 2,2n -k 3,3n | tail -n1` + VERSION=`(cd $NVM_DIR; \ls -d v${~PATTERN}* 2>/dev/null) | sort -t. -k 2,1n -k 2,2n -k 3,3n | tail -n1` fi if [ ! "$VERSION" ]; then echo "N/A" @@ -118,7 +118,7 @@ nvm() [ ! -z $tarball ] && \ mkdir -p "$NVM_DIR/src" && \ cd "$NVM_DIR/src" && \ - curl -C - -# $tarball -o "node-$VERSION.tar.gz" && \ + curl -C - --progress-bar $tarball -o "node-$VERSION.tar.gz" && \ tar -xzf "node-$VERSION.tar.gz" && \ cd "node-$VERSION" && \ ./configure --prefix="$NVM_DIR/$VERSION" && \