mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 13:32:53 -05:00
Reverted detection change
This commit is contained in:
parent
8f7fc68ea1
commit
4c9d4bccc4
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ version=0.2.5
|
||||||
bashrc="/home/$USER/.bashrc"
|
bashrc="/home/$USER/.bashrc"
|
||||||
zshrc="/home/$USER/.zshrc"
|
zshrc="/home/$USER/.zshrc"
|
||||||
originaldir=$PWD
|
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" ]];
|
if [[ "$environment" = "bash" ]] || [[ "$environment" = "zsh" ]];
|
||||||
then
|
then
|
||||||
if ! grep -q 'bash /home/$USER/.welcome/welcome.sh' $bashrc && ! grep -q 'zsh /home/$USER/.welcome/welcome.sh' $zshrc;
|
if ! grep -q 'bash /home/$USER/.welcome/welcome.sh' $bashrc && ! grep -q 'zsh /home/$USER/.welcome/welcome.sh' $zshrc;
|
||||||
|
|
Loading…
Reference in a new issue