[shellcheck] remove use of `expr`

Jordan Harband 2016-06-06 17:55:06 -07:00
parent 20c551c608
commit 03cf6950ce
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -1089,7 +1089,7 @@ nvm_print_implicit_alias() {
if [ "_0${NORMALIZED_VERSION#?}" != "_$NORMALIZED_VERSION" ]; then if [ "_0${NORMALIZED_VERSION#?}" != "_$NORMALIZED_VERSION" ]; then
STABLE="$MINOR" STABLE="$MINOR"
else else
MOD=$(expr "$NORMALIZED_VERSION" \/ 1000000 \% 2) MOD="$(awk 'BEGIN { print int(ARGV[1] / 1000000) % 2 ; exit(0) }' "$NORMALIZED_VERSION")"
if [ "$MOD" -eq 0 ]; then if [ "$MOD" -eq 0 ]; then
STABLE="$MINOR" STABLE="$MINOR"
elif [ "$MOD" -eq 1 ]; then elif [ "$MOD" -eq 1 ]; then