aboutsummaryrefslogtreecommitdiffstats
path: root/etc/default
diff options
context:
space:
mode:
authorDamian Szuberski <[email protected]>2022-01-06 23:36:04 +0100
committerGitHub <[email protected]>2022-01-06 14:36:04 -0800
commitae66d3aa90f66943ca726fa2ea7e038175aab6cf (patch)
treebf1d550da22eb29f093f489584ad58395962827e /etc/default
parentccc421ec390432533ef063cb633c3c2149de9f47 (diff)
Add ShellCheck's `--enable=all` inside `etc/`
Strengthen static code analysis for shell scripts. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Signed-off-by: szubersk <[email protected]> Closes #12913
Diffstat (limited to 'etc/default')
-rw-r--r--etc/default/Makefile.am3
-rw-r--r--etc/default/zfs.in1
2 files changed, 3 insertions, 1 deletions
diff --git a/etc/default/Makefile.am b/etc/default/Makefile.am
index 0f7c96698..74a4edd62 100644
--- a/etc/default/Makefile.am
+++ b/etc/default/Makefile.am
@@ -5,4 +5,5 @@ initconf_SCRIPTS = zfs
SUBSTFILES += $(initconf_SCRIPTS)
-SHELLCHECK_SHELL = sh
+SHELLCHECK_SHELL = dash
+SHELLCHECK_OPTS = --enable=all
diff --git a/etc/default/zfs.in b/etc/default/zfs.in
index fb4a1b65e..ae813e9de 100644
--- a/etc/default/zfs.in
+++ b/etc/default/zfs.in
@@ -1,4 +1,5 @@
# OpenZFS userland configuration.
+# shellcheck disable=SC2154
# NOTE: This file is intended for sysv init and initramfs.
# Changing some of these settings may not make any difference on