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

using absolute path over relative path for subscripts (#538)

This commit is contained in:
celestialorb 2024-10-27 11:49:15 -07:00 committed by GitHub
parent 85f8011105
commit 64980b9db3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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