"set --" was designed for word splitting. This is a known issue of
shellcheck
https://github.com/koalaman/shellcheck/issues/2335.
Signed-off-by: Coiby Xu <coxu(a)redhat.com>
---
kdump-lib.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/kdump-lib.sh b/kdump-lib.sh
index 873833b..ec338b4 100755
--- a/kdump-lib.sh
+++ b/kdump-lib.sh
@@ -425,6 +425,7 @@ is_dracut_mod_omitted()
{
local dracut_mod=$1
+ # shellcheck disable=SC2046 # a known issue
https://github.com/koalaman/shellcheck/issues/2335
set -- $(kdump_get_conf_val dracut_args)
while [ $# -gt 0 ]; do
case $1 in
--
2.37.1