Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
mods: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xTVaser committed Aug 16, 2024
1 parent ae98268 commit 82dae4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mod-bundler/emit-metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 82dae4f

Please sign in to comment.