From a827741e69fc71e777846371af53ca1154be8f05 Mon Sep 17 00:00:00 2001 From: G2-Games <72430668+G2-Games@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:06:04 -0500 Subject: [PATCH] Cfg version bump --- install.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/install.sh b/install.sh index 69261f3..f2bda2a 100755 --- a/install.sh +++ b/install.sh @@ -1,17 +1,10 @@ version="${1:-1.0.2}" vernum=$(echo $version | sed 's/[.][.]*//g' ) -cfgver=1 +cfgver=2 bashrc=~/.bashrc zshrc=~/.zshrc originaldir=$PWD environment=$(ps -o args= -p $$ | grep -Em 1 -o '\w{0,5}sh' | head -1) -getversion () { - if ! [[ -a $1 ]]; then - echo "0" - else - grep version ~/.welcome/$1 | sed 's/.*=//' | sed 's/[.][.]*//g' - fi -} 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;