From 6e894520ec5f2323ac321d970b5781a13c63f0b6 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 19 Sep 2015 22:55:19 +0900 Subject: [PATCH] Use a tighter `grep` to avoid `dnvm.sh` conflicts. Fixes #838. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 3774bb2..1738380 100755 --- a/install.sh +++ b/install.sh @@ -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