mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Silencing error outputs as well (for consistency and following after things like curl)
This commit is contained in:
		
							
								
								
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -1476,11 +1476,11 @@ nvm() { | ||||
|           [ $silent -ne 1 ] && echo "Now using system version of io.js: $(iojs --version 2>/dev/null)$(nvm_print_npm_version)" | ||||
|           return | ||||
|         else | ||||
|           echo "System version of node not found." >&2 | ||||
|           [ $silent -ne 1 ] && echo "System version of node not found." >&2 | ||||
|           return 127 | ||||
|         fi | ||||
|       elif [ "_$VERSION" = "_∞" ]; then | ||||
|         echo "The alias \"$PROVIDED_VERSION\" leads to an infinite loop. Aborting." >&2 | ||||
|         [ $silent -ne 1 ] && echo "The alias \"$PROVIDED_VERSION\" leads to an infinite loop. Aborting." >&2 | ||||
|         return 8 | ||||
|       fi | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user