mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 01:45:50 +08:00 
			
		
		
		
	Silencing nvm_version_path error output in nvm_print_versions
This commit is contained in:
		
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -382,7 +382,7 @@ nvm_print_versions() { | ||||
|   echo "$1" | while read VERSION; do | ||||
|     if [ "$VERSION" = "$NVM_CURRENT" ]; then | ||||
|       FORMAT='\033[0;32m-> %9s\033[0m' | ||||
|     elif [ -d "$(nvm_version_path "$VERSION")" ]; then | ||||
|     elif [ -d "$(nvm_version_path "$VERSION" 2> /dev/null)" ]; then | ||||
|       FORMAT='\033[0;34m%12s\033[0m' | ||||
|     elif [ "$VERSION" = "system" ]; then | ||||
|       FORMAT='\033[0;33m%12s\033[0m' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user