creationix/nvm — pull request #296 by frasertweedale (2013-09-22 05:05:02+00:00)
Title: install.sh: use a more generic SOURCE_STR

SOURCE_STR currently includes the value of $HOME (at install time).
Change SOURCE_STR to include a literal "$HOME" (to be expanded at
profile runtime) so that sourcing nvm will work if the user changes
their username, shares their profile, et cetera.

Also use the more portable single-square-bracket test.