Merge pull request #694 from pfac/pfac-fix-source-nvm-sh-error-message

Fix error message when sourcing nvm.sh
master
Jordan Harband 2015-03-18 10:05:22 -07:00
commit 3cc5d6af67
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -1697,7 +1697,7 @@ $NVM_LS_REMOTE_IOJS_OUTPUT" | command grep -v "N/A" | sed '/^$/d')"
}
nvm_supports_source_options() {
[ "_$(echo 'echo $1' | . /dev/stdin yes)" = "_yes" ]
[ "_$(echo 'echo $1' | . /dev/stdin yes 2> /dev/null)" = "_yes" ]
}
if nvm_supports_source_options && [ "_$1" = "_--install" ]; then