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 () {
|
||||
# To monitor number of downloads/updates
|
||||
curl https://g2games.dev/Assets/counter/counter.php
|
||||
|
||||
tput rc el ed
|
||||
echo "Updating..."
|
||||
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
|
||||
#==== Execute if first time installing...====#
|
||||
|
||||
# To monitor number of downloads/updates
|
||||
curl https://g2games.dev/Assets/counter/counter.php
|
||||
|
||||
tput rc
|
||||
echo "Welcome! Installing v$version in $environment..."
|
||||
tput sc
|
||||
|
|
Loading…
Reference in a new issue