mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-02-03 20:44:44 +01: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
|
# Path to the mod-list.json file
|
||||||
MOD_LIST_FILE="$MODS/mod-list.json"
|
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()
|
enable_mod()
|
||||||
{
|
{
|
||||||
echo "Enable mod $1 for DLC"
|
echo "Enable mod $1 for DLC"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user