Suppress unnecessary output

master
Isaac Wolkerstorfer 2011-01-24 17:11:46 +01:00
parent 85566c9682
commit 3d0082fa60
1 changed files with 3 additions and 3 deletions

6
nvm.sh
View File

@ -111,7 +111,7 @@ nvm()
cd "node-$VERSION" && \
./configure --prefix="$NVM_DIR/$VERSION" && \
make && \
rm -f "$NVM_DIR/$VERSION" && \
rm -f "$NVM_DIR/$VERSION" 2>/dev/null && \
make install && \
nvm use $VERSION
if ! which npm ; then
@ -209,7 +209,7 @@ nvm()
STABLE=`nvm_version stable`
(cd $NVM_DIR
rm -f v* 2>/dev/null
echo -n "# syncing with nodejs.org..."
printf "# syncing with nodejs.org..."
for VER in `curl -s http://nodejs.org/dist/ -o - | grep 'node-v.*\.tar\.gz' | sed -e 's/.*node-//' -e 's/\.tar\.gz.*//'`; do
touch $VER
done
@ -219,7 +219,7 @@ nvm()
[ "$LATEST" = `nvm_version latest` ] || echo "NEW latest: `nvm_version latest`"
;;
"clear-cache" )
rm -f $NVM_DIR/v*
rm -f $NVM_DIR/v* 2>/dev/null
echo "Cache cleared."
;;
"version" )