From 17426584cdbc89934fd0b0f85d64c3cf850a67ce Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Tue, 28 Jul 2026 11:14:36 +0200 Subject: [PATCH] Sync scripts/signals.sh with docker-common's canonical version Adopts bash-arithmetic exit-code computation ($((128 + SIGNUM))) instead of piping to bc, dropping that dependency. Consolidates this project onto docker-common's shared scripts (see that repo's CLAUDE.md). Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01NiNnj78HGx1KWyCCo39HSz --- scripts/signals.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/signals.sh b/scripts/signals.sh index bd48be3..515f7a5 100644 --- a/scripts/signals.sh +++ b/scripts/signals.sh @@ -21,5 +21,5 @@ signal_name_to_number() { signal_return_val() { SIGNAME="$1" SIGNUM=$(signal_name_to_number ${SIGNAME}) - echo "128 + $SIGNUM" | bc + echo $((128 + SIGNUM)) }