mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Supresses error message on checking source options
This commit is contained in:
		
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -1697,7 +1697,7 @@ $NVM_LS_REMOTE_IOJS_OUTPUT" | command grep -v "N/A" | sed '/^$/d')" | |||||||
| } | } | ||||||
|  |  | ||||||
| nvm_supports_source_options() { | nvm_supports_source_options() { | ||||||
|   [ "_$(echo 'echo $1' | . /dev/stdin yes)" = "_yes" ] |   [ "_$(echo 'echo $1' | . /dev/stdin yes 2> /dev/null)" = "_yes" ] | ||||||
| } | } | ||||||
|  |  | ||||||
| if nvm_supports_source_options && [ "_$1" = "_--install" ]; then | if nvm_supports_source_options && [ "_$1" = "_--install" ]; then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user