mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	change to use default behavior for which
This commit is contained in:
		
							
								
								
									
										13
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -951,12 +951,15 @@ nvm() { | |||||||
|       nvm_version current |       nvm_version current | ||||||
|     ;; |     ;; | ||||||
|     "which" ) |     "which" ) | ||||||
|       INPUT=$2 |       if [ $# -eq 1 ]; then | ||||||
|  |         nvm_rc_version | ||||||
|       if [ "_$2" != '_system' ]; then |         if [ -n "$NVM_RC_VERSION" ]; then | ||||||
|         VERSION="$(nvm_version "$INPUT")" |           VERSION=`nvm_version $NVM_RC_VERSION` | ||||||
|  |         fi | ||||||
|  |       elif [ "_$2" != '_system' ]; then | ||||||
|  |         VERSION="$(nvm_version "$2")" | ||||||
|       else |       else | ||||||
|         VERSION="$INPUT" |         VERSION="$2" | ||||||
|       fi |       fi | ||||||
|       if [ -z "$VERSION" ]; then |       if [ -z "$VERSION" ]; then | ||||||
|         nvm help |         nvm help | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user