had a friend download the .zip instead of cloning it which straight up broke the updater which is nice and perfect

This commit is contained in:
WhatDidYouExpect 2025-07-06 21:45:30 +02:00
parent 6344506fc5
commit f99b782cde
3 changed files with 10 additions and 0 deletions

View file

@ -1,4 +1,5 @@
{
"not_cloned": "Goober is not cloned! Please clone it from GitHub.",
"checks_disabled": "Checks are disabled!",
"unhandled_exception": "An unhandled exception occurred. Please report this issue on GitHub.",
"active_users:": "Active users:",

View file

@ -1,4 +1,5 @@
{
"not_cloned": "Goober non è stato clonato! Clonalo da GitHub.",
"checks_disabled": "I controlli sono disabilitati!",
"unhandled_exception": "Si è verificata un'eccezione non gestita. Segnala questo problema su GitHub, per favore.",
"active_users:": "Utenti attivi:",

View file

@ -20,6 +20,13 @@ except ImportError:
psutilavaliable = False
print(RED, _('missing_requests_psutil'), RESET)
def iscloned():
if os.path.exists(".git"):
return True
else:
print(f"{RED}{(_('not_cloned'))}{RESET}")
sys.exit(1)
def check_missing_translations():
if LOCALE == "en":
print("Locale is English, skipping missing key check.")
@ -277,6 +284,7 @@ def start_checks():
print(f"{YELLOW}{(_('checks_disabled'))}{RESET}")
return
print(_('running_prestart_checks'))
iscloned()
check_missing_translations()
check_requirements()
check_latency()