Possibly fix a few tests

This commit is contained in:
Yash Singh 2021-04-19 10:07:36 -07:00 committed by Yash-Singh1
parent e1bbf0b619
commit c8914252d8
2 changed files with 2 additions and 2 deletions

2
nvm.sh
View File

@ -3970,7 +3970,7 @@ nvm() {
# so, unalias it.
nvm unalias "${ALIAS}"
return $?
elif grep -q "#" <<< "${ALIAS}"; then
elif echo $ALIAS | grep -q "#"; then
nvm_err "Aliases may not have a # inside it"
exit 1
elif [ "${TARGET}" != '--' ]; then

View File

@ -14,4 +14,4 @@ EXPECTED_OUTPUT="Found '$(nvm_find_up .nvmrc)/.nvmrc' with version <node>"
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] \
|| die "'nvm_rc_version' did not output '$EXPECTED_OUTPUT'; got '$OUTPUT'"
rm -f .nvmrc
rm -f .nvmrc