mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Suppress unnecessary output
This commit is contained in:
parent
85566c9682
commit
3d0082fa60
6
nvm.sh
6
nvm.sh
@ -111,7 +111,7 @@ nvm()
|
|||||||
cd "node-$VERSION" && \
|
cd "node-$VERSION" && \
|
||||||
./configure --prefix="$NVM_DIR/$VERSION" && \
|
./configure --prefix="$NVM_DIR/$VERSION" && \
|
||||||
make && \
|
make && \
|
||||||
rm -f "$NVM_DIR/$VERSION" && \
|
rm -f "$NVM_DIR/$VERSION" 2>/dev/null && \
|
||||||
make install && \
|
make install && \
|
||||||
nvm use $VERSION
|
nvm use $VERSION
|
||||||
if ! which npm ; then
|
if ! which npm ; then
|
||||||
@ -209,7 +209,7 @@ nvm()
|
|||||||
STABLE=`nvm_version stable`
|
STABLE=`nvm_version stable`
|
||||||
(cd $NVM_DIR
|
(cd $NVM_DIR
|
||||||
rm -f v* 2>/dev/null
|
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
|
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
|
touch $VER
|
||||||
done
|
done
|
||||||
@ -219,7 +219,7 @@ nvm()
|
|||||||
[ "$LATEST" = `nvm_version latest` ] || echo "NEW latest: `nvm_version latest`"
|
[ "$LATEST" = `nvm_version latest` ] || echo "NEW latest: `nvm_version latest`"
|
||||||
;;
|
;;
|
||||||
"clear-cache" )
|
"clear-cache" )
|
||||||
rm -f $NVM_DIR/v*
|
rm -f $NVM_DIR/v* 2>/dev/null
|
||||||
echo "Cache cleared."
|
echo "Cache cleared."
|
||||||
;;
|
;;
|
||||||
"version" )
|
"version" )
|
||||||
|
Loading…
Reference in New Issue
Block a user