mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Use nvm_version_greater in nvm_binary_available
				
					
				
			This commit is contained in:
		
							
								
								
									
										8
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -195,11 +195,9 @@ nvm_prepend_path() { | |||||||
|  |  | ||||||
| nvm_binary_available() { | nvm_binary_available() { | ||||||
|   # binaries started with node 0.8.6 |   # binaries started with node 0.8.6 | ||||||
|   local MINIMAL |   local LAST_VERSION_WITHOUT_BINARY | ||||||
|   MINIMAL="0.8.6" |   LAST_VERSION_WITHOUT_BINARY="0.8.5" | ||||||
|   local VERSION |   nvm_version_greater "$1" "$LAST_VERSION_WITHOUT_BINARY" | ||||||
|   VERSION=$1 |  | ||||||
|   [ $(nvm_normalize_version $VERSION) -ge $(nvm_normalize_version $MINIMAL) ] |  | ||||||
| } | } | ||||||
|  |  | ||||||
| nvm_ls_current() { | nvm_ls_current() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user