mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 05:22: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
|
||||
echo "Updating..."
|
||||
tput sc
|
||||
mv ~/.welcome/welcome.sh ~/.welcome/welcome.sh.bkup
|
||||
rm ~/.welcome/welcome.sh
|
||||
if which curl >/dev/null ;
|
||||
then
|
||||
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
|
||||
else
|
||||
echo -e "\e[31mCannot update, neither Wget nor cURL is available!\e[0m"
|
||||
mv ~/.welcome/welcome.sh.bkup ~/.welcome/welcome.sh
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue