Use a tighter `grep` to avoid `dnvm.sh` conflicts.

Fixes #838.
Jordan Harband 2015-09-19 22:55:19 +09:00
parent 9e389eb9fe
commit 6e894520ec
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ nvm_do_install() {
printf "$SOURCE_STR"
echo
else
if ! grep -qc 'nvm.sh' "$NVM_PROFILE"; then
if ! command grep -qc '/nvm.sh' "$NVM_PROFILE"; then
echo "=> Appending source string to $NVM_PROFILE"
printf "$SOURCE_STR\n" >> "$NVM_PROFILE"
else