From 344b57fe33c661ababcc00da6a3a972dd1415298 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 26 Nov 2013 19:05:20 +0900 Subject: [PATCH] grep -F --- install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install b/install index cd933de..2078ef8 100755 --- a/install +++ b/install @@ -33,7 +33,7 @@ else fi # Auto-completion -read -p "Do you want to add auto-completion support? (y/n) " -n 1 -r +read -p "Do you want to add auto-completion support? ([y]/n) " -n 1 -r echo [[ ! $REPLY =~ ^[Nn]$ ]] auto_completion=$? @@ -67,7 +67,7 @@ for shell in bash zsh; do echo "Update $rc:" echo " - $src" - if [ $(grep "$src" $rc | wc -l) -gt 0 ]; then + if [ $(grep -F "$src" $rc | wc -l) -gt 0 ]; then echo " - Not added (already being sourced)" else echo $src >> $rc