Fixed `nvm_version_greater` has syntax error in zsh-buildin-command `[`

master
Hiroshi IKEGAMI 2014-08-22 10:59:11 +09:00
parent 1c85068091
commit f130d02efc
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}')
local RHS
RHS=$(echo "$2" | awk -F. '{for (i=1;i<=NF;++i) printf "%010d",$i}')
[ $LHS \> $RHS ];
[ $LHS -gt $RHS ];
}
nvm_version_dir() {