forked from gooberinc/goober
Please enter the commit message for your changes. Lines starting
with '#' will be ignored, and an empty message aborts the commit.
This commit is contained in:
parent
c732049d79
commit
6637ece3d8
5 changed files with 14 additions and 5 deletions
|
@ -19,8 +19,6 @@ def is_remote_ahead(branch='main', remote='origin'):
|
|||
|
||||
# Automatically update the local repository if the remote is ahead
|
||||
def auto_update(branch='main', remote='origin'):
|
||||
if launched == True:
|
||||
return
|
||||
if launched == True:
|
||||
print(_("already_started"))
|
||||
return
|
||||
|
@ -77,7 +75,7 @@ def check_for_update():
|
|||
print(f"{YELLOW}{_('new_version').format(latest_version=latest_version, local_version=local_version)}{RESET}")
|
||||
print(f"{YELLOW}{_('changelog').format(VERSION_URL=VERSION_URL)}{RESET}")
|
||||
auto_update()
|
||||
elif local_version > latest_version and beta == True:
|
||||
elif beta == True:
|
||||
print(f"{YELLOW}You are running an \"unstable\" version of Goober, do not expect it to work properly.\nVersion {local_version}{RESET}")
|
||||
elif local_version > latest_version:
|
||||
print(f"{YELLOW}{_('modification_warning')}{RESET}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue