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:
parent
3defd74c46
commit
e37bcf1ed0
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user