From 82dea9d6d1e0ba0f63374ee7f9669900ae4ab8d0 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sun, 20 Apr 2025 13:47:05 -0600 Subject: [PATCH] util/abuild: Disable shellcheck warning on interrupt() Shellcheck warns that the interrupt() function is unreachable, but it's set to run on CTL-C. Disable the warning. Change-Id: I0b850573964c732b1a3875dfdc7c1f0d406bac1a Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/c/coreboot/+/87371 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- util/abuild/abuild | 1 + 1 file changed, 1 insertion(+) diff --git a/util/abuild/abuild b/util/abuild/abuild index a9525f8b1f..9c48bf5fbb 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -103,6 +103,7 @@ ts_basetime_str=$(date -u --date=@${ts_exec_shell}) trap interrupt INT +# shellcheck disable=SC2317 # Disable unreacheable code warning. It's a trap! interrupt() { printf "\n%s: execution interrupted manually.\n" "$0"