Merge pull request #505 from magicdrive/fix-error_nvm_version_greater

Fixed `nvm_version_greater` has syntax error in zsh-builtin command `[`
master
Jordan Harband 2014-08-21 22:42:05 -07:00
commit 7551746e55
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -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() {