mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Moving the N/A check earlier in nvm install
				
					
				
			This commit is contained in:
		
							
								
								
									
										10
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -963,6 +963,11 @@ nvm() { | ||||
|         ;; | ||||
|       esac | ||||
|  | ||||
|       if [ "_$VERSION" = "_N/A" ]; then | ||||
|         echo "Version '$provided_version' not found - try \`nvm ls-remote\` to browse available versions." >&2 | ||||
|         return 3 | ||||
|       fi | ||||
|  | ||||
|       ADDITIONAL_PARAMETERS='' | ||||
|       local PROVIDED_REINSTALL_PACKAGES_FROM | ||||
|       local REINSTALL_PACKAGES_FROM | ||||
| @@ -1004,11 +1009,6 @@ nvm() { | ||||
|         return $? | ||||
|       fi | ||||
|  | ||||
|       if [ "_$VERSION" = "_N/A" ]; then | ||||
|         echo "Version '$provided_version' not found - try \`nvm ls-remote\` to browse available versions." >&2 | ||||
|         return 3 | ||||
|       fi | ||||
|  | ||||
|       if [ "_$NVM_OS" = "_freebsd" ]; then | ||||
|         # node.js and io.js do not have a FreeBSD binary | ||||
|         nobinary=1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user