Only rename console title on Windows

Prevent "sh: line 1: title: command not found" error on Linux
This commit is contained in:
Shiraz 2022-07-09 10:17:21 +01:00
parent 18e012540c
commit 8227c12bf1

View File

@ -21,7 +21,8 @@ def rename_console_title() -> None:
"""
Renames the console title on first startup
"""
os.system("title " + "pluGET │ By Neocky")
if os.name == "nt":
os.system("title " + "pluGET │ By Neocky")
return None