mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Fix curl/wget detection. Fixes #478
This commit is contained in:
		
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -317,7 +317,7 @@ nvm() { | |||||||
|       version_not_provided=0 |       version_not_provided=0 | ||||||
|       local provided_version |       local provided_version | ||||||
|  |  | ||||||
|       if ! nvm_has "nvm_download"; then |       if ! nvm_has "curl" && ! nvm_has "wget"; then | ||||||
|         echo 'nvm needs curl or wget to proceed.' >&2; |         echo 'nvm needs curl or wget to proceed.' >&2; | ||||||
|         return 1 |         return 1 | ||||||
|       fi |       fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user