mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-10-08 23:09:48 +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
|
||||
EXEC=""
|
||||
# Setup ARM64 emulation support
|
||||
# shellcheck disable=SC1091
|
||||
source "${INSTALLED_DIRECTORY}/setup-exec.sh"
|
||||
|
||||
# Update config path
|
||||
|
@@ -41,10 +41,10 @@ if [[ $NRTMPSAVES -gt 0 ]]; then
|
||||
fi
|
||||
|
||||
if [[ ${UPDATE_MODS_ON_START:-} == "true" ]]; then
|
||||
${INSTALLED_DIRECTORY}/docker-update-mods.sh
|
||||
"${INSTALLED_DIRECTORY}"/docker-update-mods.sh
|
||||
fi
|
||||
|
||||
${INSTALLED_DIRECTORY}/docker-dlc.sh
|
||||
"${INSTALLED_DIRECTORY}"/docker-dlc.sh
|
||||
|
||||
EXEC=""
|
||||
if [[ $(id -u) == 0 ]]; then
|
||||
@@ -58,6 +58,7 @@ if [[ $(id -u) == 0 ]]; then
|
||||
fi
|
||||
|
||||
# Setup ARM64 emulation support
|
||||
# shellcheck disable=SC1091
|
||||
source "${INSTALLED_DIRECTORY}/setup-exec.sh"
|
||||
|
||||
sed -i '/write-data=/c\write-data=\/factorio/' /opt/factorio/config/config.ini
|
||||
|
@@ -34,6 +34,7 @@ fi
|
||||
|
||||
# Setup ARM64 emulation support
|
||||
EXEC=""
|
||||
# shellcheck disable=SC1091
|
||||
source "${INSTALLED_DIRECTORY}/setup-exec.sh"
|
||||
|
||||
exec $EXEC /opt/factorio/bin/x64/factorio \
|
||||
|
@@ -26,6 +26,7 @@ fi
|
||||
|
||||
# Setup ARM64 emulation support
|
||||
EXEC=""
|
||||
# shellcheck disable=SC1091
|
||||
source "${INSTALLED_DIRECTORY}/setup-exec.sh"
|
||||
|
||||
exec $EXEC /opt/factorio/bin/x64/factorio \
|
||||
|
Reference in New Issue
Block a user