mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-10-11 08:19:55 +02:00
Fix shellcheck warnings in entrypoint scripts
- Add shellcheck disable=SC1091 for dynamic source paths - Quote INSTALLED_DIRECTORY variables to prevent word splitting - Resolves all reported shellcheck issues in PR review 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -54,6 +54,7 @@ fi
|
|||||||
# The container runs as the specified user from the start
|
# The container runs as the specified user from the start
|
||||||
EXEC=""
|
EXEC=""
|
||||||
# Setup ARM64 emulation support
|
# Setup ARM64 emulation support
|
||||||
|
# shellcheck disable=SC1091
|
||||||
source "${INSTALLED_DIRECTORY}/setup-exec.sh"
|
source "${INSTALLED_DIRECTORY}/setup-exec.sh"
|
||||||
|
|
||||||
# Update config path
|
# Update config path
|
||||||
|
@@ -41,10 +41,10 @@ if [[ $NRTMPSAVES -gt 0 ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${UPDATE_MODS_ON_START:-} == "true" ]]; then
|
if [[ ${UPDATE_MODS_ON_START:-} == "true" ]]; then
|
||||||
${INSTALLED_DIRECTORY}/docker-update-mods.sh
|
"${INSTALLED_DIRECTORY}"/docker-update-mods.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${INSTALLED_DIRECTORY}/docker-dlc.sh
|
"${INSTALLED_DIRECTORY}"/docker-dlc.sh
|
||||||
|
|
||||||
EXEC=""
|
EXEC=""
|
||||||
if [[ $(id -u) == 0 ]]; then
|
if [[ $(id -u) == 0 ]]; then
|
||||||
@@ -58,6 +58,7 @@ if [[ $(id -u) == 0 ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Setup ARM64 emulation support
|
# Setup ARM64 emulation support
|
||||||
|
# shellcheck disable=SC1091
|
||||||
source "${INSTALLED_DIRECTORY}/setup-exec.sh"
|
source "${INSTALLED_DIRECTORY}/setup-exec.sh"
|
||||||
|
|
||||||
sed -i '/write-data=/c\write-data=\/factorio/' /opt/factorio/config/config.ini
|
sed -i '/write-data=/c\write-data=\/factorio/' /opt/factorio/config/config.ini
|
||||||
|
@@ -34,6 +34,7 @@ fi
|
|||||||
|
|
||||||
# Setup ARM64 emulation support
|
# Setup ARM64 emulation support
|
||||||
EXEC=""
|
EXEC=""
|
||||||
|
# shellcheck disable=SC1091
|
||||||
source "${INSTALLED_DIRECTORY}/setup-exec.sh"
|
source "${INSTALLED_DIRECTORY}/setup-exec.sh"
|
||||||
|
|
||||||
exec $EXEC /opt/factorio/bin/x64/factorio \
|
exec $EXEC /opt/factorio/bin/x64/factorio \
|
||||||
|
@@ -26,6 +26,7 @@ fi
|
|||||||
|
|
||||||
# Setup ARM64 emulation support
|
# Setup ARM64 emulation support
|
||||||
EXEC=""
|
EXEC=""
|
||||||
|
# shellcheck disable=SC1091
|
||||||
source "${INSTALLED_DIRECTORY}/setup-exec.sh"
|
source "${INSTALLED_DIRECTORY}/setup-exec.sh"
|
||||||
|
|
||||||
exec $EXEC /opt/factorio/bin/x64/factorio \
|
exec $EXEC /opt/factorio/bin/x64/factorio \
|
||||||
|
Reference in New Issue
Block a user