From 48ccb7d1d7a12567c79fa296336c3086108f144c Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sat, 8 Feb 2025 15:23:21 +0100 Subject: [PATCH] package/kodi/br-kodi: fix shellcheck SC2317 & SC2329 As stated in shellcheck wiki about SC2329 [1] "ShellCheck is currently bad at figuring out functions that are invoked via trap. In such cases, please ignore the message with a directive." While adding SC2329 check after shellcheck v0.10.0 release, it also reduced the amount of false result returned by shellcheck v0.9.0. So disable SC2317 and SC2329. [1] https://www.shellcheck.net/wiki/SC2329 [2] https://github.com/koalaman/shellcheck/commit/4f81dbe839091a06a5cfaea695cf1c451ff07565 Signed-off-by: Romain Naour Signed-off-by: Peter Korsgaard --- package/kodi/br-kodi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/kodi/br-kodi b/package/kodi/br-kodi index 83d4d4e5ac..b776b5d96c 100755 --- a/package/kodi/br-kodi +++ b/package/kodi/br-kodi @@ -5,6 +5,8 @@ KODI="${1}" shift +# shellcheck disable=SC2329 # https://www.shellcheck.net/wiki/SC2329 +# shellcheck disable=SC2317 # shellcheck 0.9.0 "spammy" # In case someone asked we terminate, just kill # the Kodi process trap_kill() {