[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH V2 4/4] bash-completion:disable shellcheck SC2120-Warning
From: |
t . feng |
Subject: |
[PATCH V2 4/4] bash-completion:disable shellcheck SC2120-Warning |
Date: |
Wed, 30 Nov 2022 16:31:00 +0800 |
In grub-completion.bash.in line 63:
__grub_get_options_from_help () {
^-- SC2120 (warning)
SC2120: the current code meets the exception and does not need to be
modified. So we disable it.
ref:https://github.com/koalaman/shellcheck/wiki/SC2120
Signed-off-by: "t.feng" <fengtao40@huawei.com>
---
util/bash-completion.d/grub-completion.bash.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/util/bash-completion.d/grub-completion.bash.in
b/util/bash-completion.d/grub-completion.bash.in
index d5250c179..4053fc729 100644
--- a/util/bash-completion.d/grub-completion.bash.in
+++ b/util/bash-completion.d/grub-completion.bash.in
@@ -63,6 +63,7 @@ __grubcomp () {
# Function that return long options from the help of the command
# - arg: $1 (optional) command to get the long options from
+# shellcheck disable=SC2120
__grub_get_options_from_help () {
local prog
--
2.27.0