mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-28 08:38:47 +02:00
using absolute path over relative path for subscripts (#538)
This commit is contained in:
parent
85f8011105
commit
64980b9db3
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eoux pipefail
|
set -eoux pipefail
|
||||||
|
INSTALLED_DIRECTORY=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
|
||||||
FACTORIO_VOL=/factorio
|
FACTORIO_VOL=/factorio
|
||||||
LOAD_LATEST_SAVE="${LOAD_LATEST_SAVE:-true}"
|
LOAD_LATEST_SAVE="${LOAD_LATEST_SAVE:-true}"
|
||||||
GENERATE_NEW_SAVE="${GENERATE_NEW_SAVE:-false}"
|
GENERATE_NEW_SAVE="${GENERATE_NEW_SAVE:-false}"
|
||||||
@ -40,10 +41,10 @@ if [[ $NRTMPSAVES -gt 0 ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${UPDATE_MODS_ON_START:-} == "true" ]]; then
|
if [[ ${UPDATE_MODS_ON_START:-} == "true" ]]; then
|
||||||
./docker-update-mods.sh
|
${INSTALLED_DIRECTORY}/docker-update-mods.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./docker-dlc.sh
|
${INSTALLED_DIRECTORY}/docker-dlc.sh
|
||||||
|
|
||||||
EXEC=""
|
EXEC=""
|
||||||
if [[ $(id -u) == 0 ]]; then
|
if [[ $(id -u) == 0 ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user