From 4c9d4bccc468d92b5eb1b59dfe480434908c5152 Mon Sep 17 00:00:00 2001 From: G2-Games Date: Sun, 18 Sep 2022 17:57:19 -0500 Subject: [PATCH] Reverted detection change --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 76aa1a0..86a7e6b 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ version=0.2.5 bashrc="/home/$USER/.bashrc" zshrc="/home/$USER/.zshrc" originaldir=$PWD -environment=$(ps -o args= -p $$ | egrep -m 1 -o '\w{0,5}sh') +environment=$(readlink /proc/$$/exe | grep -o 'bash\|zsh') if [[ "$environment" = "bash" ]] || [[ "$environment" = "zsh" ]]; then if ! grep -q 'bash /home/$USER/.welcome/welcome.sh' $bashrc && ! grep -q 'zsh /home/$USER/.welcome/welcome.sh' $zshrc;