mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 05:22:53 -05:00
Added update tracking to installer
This commit is contained in:
parent
54f3619274
commit
979978a7f8
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue