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:
parent
6344506fc5
commit
f99b782cde
3 changed files with 10 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"not_cloned": "Goober is not cloned! Please clone it from GitHub.",
|
||||||
"checks_disabled": "Checks are disabled!",
|
"checks_disabled": "Checks are disabled!",
|
||||||
"unhandled_exception": "An unhandled exception occurred. Please report this issue on GitHub.",
|
"unhandled_exception": "An unhandled exception occurred. Please report this issue on GitHub.",
|
||||||
"active_users:": "Active users:",
|
"active_users:": "Active users:",
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"not_cloned": "Goober non è stato clonato! Clonalo da GitHub.",
|
||||||
"checks_disabled": "I controlli sono disabilitati!",
|
"checks_disabled": "I controlli sono disabilitati!",
|
||||||
"unhandled_exception": "Si è verificata un'eccezione non gestita. Segnala questo problema su GitHub, per favore.",
|
"unhandled_exception": "Si è verificata un'eccezione non gestita. Segnala questo problema su GitHub, per favore.",
|
||||||
"active_users:": "Utenti attivi:",
|
"active_users:": "Utenti attivi:",
|
||||||
|
|
|
@ -20,6 +20,13 @@ except ImportError:
|
||||||
psutilavaliable = False
|
psutilavaliable = False
|
||||||
print(RED, _('missing_requests_psutil'), RESET)
|
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():
|
def check_missing_translations():
|
||||||
if LOCALE == "en":
|
if LOCALE == "en":
|
||||||
print("Locale is English, skipping missing key check.")
|
print("Locale is English, skipping missing key check.")
|
||||||
|
@ -277,6 +284,7 @@ def start_checks():
|
||||||
print(f"{YELLOW}{(_('checks_disabled'))}{RESET}")
|
print(f"{YELLOW}{(_('checks_disabled'))}{RESET}")
|
||||||
return
|
return
|
||||||
print(_('running_prestart_checks'))
|
print(_('running_prestart_checks'))
|
||||||
|
iscloned()
|
||||||
check_missing_translations()
|
check_missing_translations()
|
||||||
check_requirements()
|
check_requirements()
|
||||||
check_latency()
|
check_latency()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue