From b3ab8b3b042c1399b01ff2bb9b2330780c57533e Mon Sep 17 00:00:00 2001 From: G2 <72430668+G2-Games@users.noreply.github.com> Date: Tue, 20 Sep 2022 03:00:47 -0500 Subject: [PATCH] Update install.sh --- install.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/install.sh b/install.sh index d925fc9..dbc30ee 100755 --- a/install.sh +++ b/install.sh @@ -73,13 +73,6 @@ then exit 1 fi - if [[ -a "~/.welcome/welcome.sh" ]]; then # Check if update succeeded - rm ~/.welcome/welcome.sh.bkup - else - mv ~/.welcome/welcome.sh.bkup ~/.welcome/welcome.sh - echo "Update failed! Restoring..." - fi - # Check for older versions and replace bashrc lines lines=$(grep -sn 'bash ~/.welcome/welcome.sh' $bashrc | sed -e 's/:.*//g' && grep -sn 'bash /home/$USER/.welcome/welcome.sh' $bashrc | sed -e 's/:.*//g') lines=$(printf '%s\n' "$( echo "$lines" )" | sort | tac | tr '\n' ' '; echo)