mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Fixed nvm_version_greater has syntax error in zsh-buildin-command [
				
					
				
			This commit is contained in:
		
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -100,7 +100,7 @@ nvm_version_greater() { | |||||||
|   LHS=$(echo "$1" | awk -F. '{for (i=1;i<=NF;++i) printf "%010d",$i}') |   LHS=$(echo "$1" | awk -F. '{for (i=1;i<=NF;++i) printf "%010d",$i}') | ||||||
|   local RHS |   local RHS | ||||||
|   RHS=$(echo "$2" | awk -F. '{for (i=1;i<=NF;++i) printf "%010d",$i}') |   RHS=$(echo "$2" | awk -F. '{for (i=1;i<=NF;++i) printf "%010d",$i}') | ||||||
|   [ $LHS \> $RHS ]; |   [ $LHS -gt $RHS ]; | ||||||
| } | } | ||||||
|  |  | ||||||
| nvm_version_dir() { | nvm_version_dir() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user