Skip to content

Commit

Permalink
Merge pull request #694 from pfac/pfac-fix-source-nvm-sh-error-message
Browse files Browse the repository at this point in the history
Fix error message when sourcing nvm.sh
  • Loading branch information
ljharb committed Mar 18, 2015
2 parents 7750253 + 999c411 commit 3cc5d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3cc5d6a

Please sign in to comment.