🐛 fix(entrypoint): use POSIX-compliant signal names

- 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.
This commit is contained in:
rE-Bo0t.bx1
2025-12-05 22:56:48 +08:00
parent a26758351c
commit b6001c3f7a
2 changed files with 2 additions and 2 deletions

View File

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

View File

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