mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Suppress unnecessary output
This commit is contained in:
		
							
								
								
									
										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" ) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user