]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
livepatch/klp-build: fix shellcheck complaints
authorJoe Lawrence <joe.lawrence@redhat.com>
Tue, 10 Mar 2026 20:37:46 +0000 (16:37 -0400)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Mon, 16 Mar 2026 19:46:49 +0000 (12:46 -0700)
commitb4a53519393521c68ec65f43bfebd64f178e6220
tree24ee6a0b8350d67a2ae25e317803f4f2c0fb74a6
parent0573bcc4ffca498a6c644b0e1ccbe1a6d9b96a5c
livepatch/klp-build: fix shellcheck complaints

Fix or suppress the following shellcheck warnings:

  In klp-build line 57:
   command grep "$@" || true
                               ^--^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

Fix the following warning:

  In klp-build line 565:
   local file_dir="$(dirname "$file")"
                        ^------^ SC2034 (warning): file_dir appears unused. Verify use (or export if used externally).

Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Link: https://patch.msgid.link/20260310203751.1479229-8-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
scripts/livepatch/klp-build