From b6001c3f7a53da65eec45509afd75c259a341671 Mon Sep 17 00:00:00 2001 From: "rE-Bo0t.bx1" <54429050+r3bo0tbx1@users.noreply.github.com> Date: Fri, 5 Dec 2025 22:56:48 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(entrypoint):=20use=20POSIX-c?= =?UTF-8?q?ompliant=20signal=20names?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Updates the trap command to use 'TERM/INT' instead of 'SIGTERM/SIGINT'. The 'SIG' prefix is undefined in POSIX sh (ShellCheck SC3048), which could prevent graceful shutdown in environments using dash/ash. --- .github/workflows/validate.yml | 2 +- docker-entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 3eefe47..0e68782 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -238,7 +238,7 @@ jobs: done if [ -d "docs" ]; then echo "📁 Checking docs directory..." - for doc in DEPLOYMENT.md BACKUP.md PERFORMANCE.md LEGAL.md MONITORING.md TOOLS.md; do + for doc in ARCHITECTURE.md BACKUP.md CONTROL-PORT.md DEPLOYMENT.md FAQ.md LEGAL.md LOCAL-TESTING.md MIGRATION-V1.1.X.md MIGRATION.md MONITORING.md MULTI-MODE.md PERFORMANCE.md TOOLS.md TROUBLESHOOTING-BRIDGE-MIGRATION.md; do if [ -f "docs/$doc" ]; then echo "✅ docs/$doc exists" else diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 1dab5d5..2c913cc 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -25,7 +25,7 @@ success() { printf "✅ %s\n" "$1"; } warn() { printf "🛑 %s\n" "$1"; } die() { printf "🛑 ERROR: %s\n" "$1"; exit 1; } -trap 'cleanup_and_exit' SIGTERM SIGINT +trap 'cleanup_and_exit' TERM INT cleanup_and_exit() { log ""