More shellcheck recommendations

master
Jordan Harband 2014-09-23 23:49:51 -07:00
parent 51f6109f8d
commit ce69c8413e
1 changed files with 3 additions and 3 deletions

6
nvm.sh
View File

@ -171,12 +171,12 @@ nvm_version() {
nvm_remote_version() {
local PATTERN
PATTERN=$1
PATTERN="$1"
local VERSION
VERSION="$(nvm_ls_remote "$PATTERN" | tail -n1)"
echo "$VERSION"
if [ "$VERSION" = 'N/A' ]; then
if [ "~$VERSION" = '~N/A' ]; then
return 3
fi
}
@ -251,7 +251,7 @@ nvm_ls() {
fi
if [ -f "$NVM_DIR/alias/$PATTERN" ]; then
nvm_version `cat $NVM_DIR/alias/$PATTERN`
nvm_version "$(cat "$NVM_DIR/alias/$PATTERN")"
return
fi
# If it looks like an explicit version, don't do anything funny