Fixed issue with failsafe

This commit is contained in:
Grant Gardner 2022-09-20 03:02:24 -05:00
parent b3ab8b3b04
commit 316cc6fda8

View file

@ -54,7 +54,7 @@ then
tput rc el ed tput rc el ed
echo "Updating..." echo "Updating..."
tput sc tput sc
mv ~/.welcome/welcome.sh ~/.welcome/welcome.sh.bkup rm ~/.welcome/welcome.sh
if which curl >/dev/null ; if which curl >/dev/null ;
then then
curl -SL https://github.com/G2-Games/welcome.sh/releases/download/v${version}/welcome.sh --output ~/.welcome/welcome.sh curl -SL https://github.com/G2-Games/welcome.sh/releases/download/v${version}/welcome.sh --output ~/.welcome/welcome.sh
@ -69,7 +69,6 @@ then
fi fi
else else
echo -e "\e[31mCannot update, neither Wget nor cURL is available!\e[0m" echo -e "\e[31mCannot update, neither Wget nor cURL is available!\e[0m"
mv ~/.welcome/welcome.sh.bkup ~/.welcome/welcome.sh
exit 1 exit 1
fi fi