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"
This commit is contained in:
Sam 2015-09-04 14:04:50 -07:00
commit ca826a388a

View file

@ -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