mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Use $() instead of backticks; add quotes
This commit is contained in:
		
							
								
								
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -161,7 +161,7 @@ nvm_version() { | |||||||
|     return $? |     return $? | ||||||
|   fi |   fi | ||||||
|  |  | ||||||
|   VERSION=`nvm_ls $PATTERN | tail -n1` |   VERSION="$(nvm_ls "$PATTERN" | tail -n1)" | ||||||
|   echo "$VERSION" |   echo "$VERSION" | ||||||
|  |  | ||||||
|   if [ "$VERSION" = 'N/A' ]; then |   if [ "$VERSION" = 'N/A' ]; then | ||||||
| @@ -173,7 +173,7 @@ nvm_remote_version() { | |||||||
|   local PATTERN |   local PATTERN | ||||||
|   PATTERN=$1 |   PATTERN=$1 | ||||||
|   local VERSION |   local VERSION | ||||||
|   VERSION=`nvm_ls_remote $PATTERN | tail -n1` |   VERSION="$(nvm_ls_remote "$PATTERN" | tail -n1)" | ||||||
|   echo "$VERSION" |   echo "$VERSION" | ||||||
|  |  | ||||||
|   if [ "$VERSION" = 'N/A' ]; then |   if [ "$VERSION" = 'N/A' ]; then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user