Added update tracking to installer

This commit is contained in:
G2 2023-03-07 14:00:44 -06:00
parent 54f3619274
commit 979978a7f8

View file

@ -58,6 +58,9 @@ uninstall () {
} }
update () { update () {
# To monitor number of downloads/updates
curl https://g2games.dev/Assets/counter/counter.php
tput rc el ed tput rc el ed
echo "Updating..." echo "Updating..."
tput sc tput sc
@ -131,6 +134,9 @@ fi
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; 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; then
#==== Execute if first time installing...====# #==== Execute if first time installing...====#
# To monitor number of downloads/updates
curl https://g2games.dev/Assets/counter/counter.php
tput rc tput rc
echo "Welcome! Installing v$version in $environment..." echo "Welcome! Installing v$version in $environment..."
tput sc tput sc