1
0
mirror of https://github.com/factoriotools/factorio-docker.git synced 2024-11-24 08:22:14 +02:00

Create base mod-list.json if it does not exist (#523)

This commit is contained in:
Florian Kinder 2024-10-22 23:54:00 +02:00 committed by GitHub
parent 3defd74c46
commit e37bcf1ed0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"