From a2baeb2fe2db2454d3c903a6c781c23df77cab98 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Wed, 19 Jul 2023 09:19:41 +0200 Subject: [PATCH] zdev/dracut/zdev-lib.sh: add ShellCheck shell directive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a ShellCheck [1] directive before the first command in the file to tell ShellCheck and the reader which shell to use. See https://www.shellcheck.net/wiki/SC2148 for details. [1] https://www.shellcheck.net/ Reviewed-by: Steffen Maier Signed-off-by: Marc Hartmayer Signed-off-by: Jan Höppner --- zdev/dracut/95zdev/zdev-lib.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/zdev/dracut/95zdev/zdev-lib.sh b/zdev/dracut/95zdev/zdev-lib.sh index fa907cee..48abd6bb 100644 --- a/zdev/dracut/95zdev/zdev-lib.sh +++ b/zdev/dracut/95zdev/zdev-lib.sh @@ -8,6 +8,7 @@ # 95zdev/zdev-lib.sh # Common shell library functionality for 95zdev and 95zdev-kdump. # +# shellcheck shell=bash is_kdump() { # https://src.fedoraproject.org/rpms/kexec-tools/c/4eedcae5e1540690a3761857fe2e692774c44960