mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 13:32:53 -05:00
Fixed "egrep" error in zsh
This commit is contained in:
parent
5f4008459c
commit
765a471085
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue