From e37bcf1ed0e134985640788fed950be3ffd253c8 Mon Sep 17 00:00:00 2001 From: Florian Kinder Date: Tue, 22 Oct 2024 23:54:00 +0200 Subject: [PATCH] Create base mod-list.json if it does not exist (#523) --- docker/files/docker-dlc.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/files/docker-dlc.sh b/docker/files/docker-dlc.sh index f589c77..ecaa6af 100755 --- a/docker/files/docker-dlc.sh +++ b/docker/files/docker-dlc.sh @@ -4,6 +4,11 @@ set -eou pipefail # Path to the mod-list.json file MOD_LIST_FILE="$MODS/mod-list.json" +if [[ ! -f "$MOD_LIST_FILE" ]]; then + # Create the mod-list.json file if it doesn't exist + echo '{"mods":[{"name":"base","enabled":true}]}' > "$MOD_LIST_FILE" +fi + enable_mod() { echo "Enable mod $1 for DLC"