Skip to content

Commit

Permalink
Update launch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson authored Mar 9, 2024
1 parent 77b66a9 commit c6bdb56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def env_defined(key):
CONFIG_FILE = os.environ["ARMA_CONFIG"]
KEYS = "/arma3/keys"

if os.environ["CLEAR_KEYS"] == "true" and os.path.isdir(KEYS):
if env_defined("CLEAR_KEYS") && os.environ["CLEAR_KEYS"] == "true" and os.path.isdir(KEYS):
shutil.rmtree(KEYS)
if not os.path.isdir(KEYS):
if os.path.exists(KEYS):
Expand Down

0 comments on commit c6bdb56

Please sign in to comment.