mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	Inline this use of nvm_remote_version
				
					
				
			This commit is contained in:
		
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -527,7 +527,7 @@ nvm_ls_remote() { | |||||||
|   local GREP_OPTIONS |   local GREP_OPTIONS | ||||||
|   GREP_OPTIONS='' |   GREP_OPTIONS='' | ||||||
|   if nvm_validate_implicit_alias "$PATTERN" 2> /dev/null ; then |   if nvm_validate_implicit_alias "$PATTERN" 2> /dev/null ; then | ||||||
|     PATTERN="$(nvm_remote_version "$(nvm_print_implicit_alias remote "$PATTERN")")" |     PATTERN="$(nvm_ls_remote "$(nvm_print_implicit_alias remote "$PATTERN")" | tail -n1)" | ||||||
|   elif [ -n "$PATTERN" ]; then |   elif [ -n "$PATTERN" ]; then | ||||||
|     PATTERN="$(nvm_ensure_version_prefix "$PATTERN")" |     PATTERN="$(nvm_ensure_version_prefix "$PATTERN")" | ||||||
|   else |   else | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user