mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-06 02:37:25 +01:00
Optionally use MOD_LIST_MAP env variable to handle enabling mods
This commit is contained in:
parent
6916fcb150
commit
4808283c2a
@ -26,7 +26,12 @@ disable_mod()
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Enable or disable DLCs if configured
|
# Enable or disable DLCs if configured
|
||||||
if [[ ${DLC_SPACE_AGE:-} == "true" ]]; then
|
if [[ -n "$MOD_LIST_MAP" ]]; then
|
||||||
|
# if MOD_LIST_MAP env variable is defined, then use it to determine the mods to enable
|
||||||
|
for mod in $MOD_LIST_MAP; do
|
||||||
|
ENABLE_MODS+=("$mod")
|
||||||
|
done
|
||||||
|
elif [[ ${DLC_SPACE_AGE:-} == "true" ]]; then
|
||||||
# Define the DLC mods
|
# Define the DLC mods
|
||||||
ENABLE_MODS=(${ALL_SPACE_AGE_MODS[@]})
|
ENABLE_MODS=(${ALL_SPACE_AGE_MODS[@]})
|
||||||
elif [[ ${DLC_SPACE_AGE:-} == "false" ]]; then
|
elif [[ ${DLC_SPACE_AGE:-} == "false" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user