From 82dae4fc5d53edf7341018d528c7e3d8fedbeee1 Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Fri, 16 Aug 2024 16:20:13 -0400 Subject: [PATCH] mods: fix bug --- scripts/mod-bundler/emit-metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mod-bundler/emit-metadata.py b/scripts/mod-bundler/emit-metadata.py index bc454c0..d7892f6 100644 --- a/scripts/mod-bundler/emit-metadata.py +++ b/scripts/mod-bundler/emit-metadata.py @@ -26,11 +26,11 @@ def split_comma_sep_val(str): } if os.getenv("WEBSITE_URL") != "": metadata["websiteUrl"] = os.getenv("WEBSITE_URL") - exit(1) # Fail if the user hasn't changed anything if metadata["websiteUrl"] == "https://www.example.com/this/is/optional": print("Mod metadata is just copy-pasted from the example and not actually setup, do that!") + exit(1) with open("{}/metadata.json".format(os.getenv("OUT_DIR")), "w", encoding="utf-8") as f: print("Writing the following metadata: {}".format(json.dumps(metadata, indent=2, ensure_ascii=False)))