From 1be0c8a05691fa2753bb8cf0ca7085bb528f8f2f Mon Sep 17 00:00:00 2001 From: BrettMayson Date: Sat, 9 Mar 2024 06:41:07 -0600 Subject: [PATCH] Update launch.py --- launch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/launch.py b/launch.py index 28df68e..bcbb1db 100644 --- a/launch.py +++ b/launch.py @@ -19,12 +19,13 @@ def env_defined(key): CONFIG_FILE = os.environ["ARMA_CONFIG"] KEYS = "/arma3/keys" +if os.environ["CLEAR_KEYS"] == "true" and os.path.isdir(KEYS): + shutil.rmtree(KEYS) if not os.path.isdir(KEYS): if os.path.exists(KEYS): os.remove(KEYS) os.makedirs(KEYS) -elif os.environ["CLEAR_KEYS"] == "true": - shutil.rmtree(KEYS) + if os.environ["SKIP_INSTALL"] in ["", "false"]: # Install Arma