From ca826a388a1f3c6550ff4fae699a8f680d4f03e4 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 4 Sep 2015 14:04:50 -0700 Subject: [PATCH] Fixed an edge case for grep Users may have an option set for grep to use color. This was inserting escape characters in "/usr/bin/zsh" --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 1586cdee5..f74a6dd8a 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -44,7 +44,7 @@ mv -f ~/.zshrc-omztemp ~/.zshrc TEST_CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)') if [ "$TEST_CURRENT_SHELL" != "zsh" ]; then echo "\033[0;34mTime to change your default shell to zsh!\033[0m" - chsh -s $(grep /zsh$ /etc/shells | tail -1) + chsh -s $(grep --color=never /zsh$ /etc/shells | tail -1) fi unset TEST_CURRENT_SHELL