From 765a471085e6c3aa268c43fc149633353be60542 Mon Sep 17 00:00:00 2001 From: G2-Games Date: Mon, 19 Sep 2022 19:01:24 -0500 Subject: [PATCH] Fixed "egrep" error in zsh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 0340175..81033eb 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ version=1.0.0 bashrc=~/.bashrc zshrc=~/.zshrc originaldir=$PWD -environment=$(ps -o args= -p $$ | egrep -m 1 -o '\w{0,5}sh' | head -1) +environment=$(ps -o args= -p $$ | grep -Em 1 -o '\w{0,5}sh' | head -1) if [ "$environment" = "bash" ] || [ "$environment" = "zsh" ]; then if ! grep -qs 'bash ~/.welcome/welcome.sh' $bashrc && ! grep -qs 'zsh ~/.welcome/welcome.sh' $zshrc && ! grep -qs 'bash /home/$USER/.welcome/welcome.sh' $bashrc && ! grep -qs 'zsh /home/$USER/.welcome/welcome.sh' $zshrc;