From 64980b9db30497ba1526d3130158ca39f39f014b Mon Sep 17 00:00:00 2001 From: celestialorb <321475+celestialorb@users.noreply.github.com> Date: Sun, 27 Oct 2024 11:49:15 -0700 Subject: [PATCH] using absolute path over relative path for subscripts (#538) --- docker/files/docker-entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/files/docker-entrypoint.sh b/docker/files/docker-entrypoint.sh index db08fa0..05277d5 100755 --- a/docker/files/docker-entrypoint.sh +++ b/docker/files/docker-entrypoint.sh @@ -1,5 +1,6 @@ #!/bin/bash set -eoux pipefail +INSTALLED_DIRECTORY=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")") FACTORIO_VOL=/factorio LOAD_LATEST_SAVE="${LOAD_LATEST_SAVE:-true}" GENERATE_NEW_SAVE="${GENERATE_NEW_SAVE:-false}" @@ -40,10 +41,10 @@ if [[ $NRTMPSAVES -gt 0 ]]; then fi if [[ ${UPDATE_MODS_ON_START:-} == "true" ]]; then - ./docker-update-mods.sh + ${INSTALLED_DIRECTORY}/docker-update-mods.sh fi -./docker-dlc.sh +${INSTALLED_DIRECTORY}/docker-dlc.sh EXEC="" if [[ $(id -u) == 0 ]]; then