mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 13:32:53 -05:00
Fixed issue with failsafe
This commit is contained in:
parent
b3ab8b3b04
commit
316cc6fda8
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue