From d6ce99321fab8ebf3ab1c362822787562163119f Mon Sep 17 00:00:00 2001 From: Fierelier Date: Wed, 18 May 2022 02:09:01 +0200 Subject: [PATCH] Assume linux when an unsupported OS is detected --- oml/stages/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oml/stages/config.py b/oml/stages/config.py index d34427e..64d44eb 100644 --- a/oml/stages/config.py +++ b/oml/stages/config.py @@ -45,6 +45,8 @@ if len(sys.argv) > 1: if not lv["osName"] in ["windows","linux","macos"]: print(colored(colorama.Fore.YELLOW,"\nWarning, unsupported OS detected: '" +lv["osName"]+ "'"),file=sys.stderr) print("Needs to be either windows, linux or macos. Define it with osName=name in the config.",file=sys.stderr) + print(colored(colorama.Fore.PURPLE,"Falling back to assuming Linux.")) + lv["osName"] = "linux" print("") if not "version" in lv: lv["version"] = input("Version ID: ")