mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Prevent VERSION='' output caused by double local declaration.
				
					
				
			Fixes #644.
This commit is contained in:
		
							
								
								
									
										3
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -1090,11 +1090,10 @@ nvm() { | ||||
|  | ||||
|       local PATTERN | ||||
|       PATTERN="$2" | ||||
|       local VERSION | ||||
|       case "_$PATTERN" in | ||||
|         "_$(nvm_iojs_prefix)" | "_$(nvm_iojs_prefix)-" \ | ||||
|         | "_$(nvm_node_prefix)" | "_$(nvm_node_prefix)-") | ||||
|           VERSION="$(nvm_version $PATTERN)" | ||||
|           VERSION="$(nvm_version "$PATTERN")" | ||||
|         ;; | ||||
|         *) | ||||
|           VERSION="$(nvm_version "$PATTERN")" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user