summaryrefslogtreecommitdiff
path: root/lsinitramfs
diff options
context:
space:
mode:
authorBenjamin Drung <benjamin.drung@cloud.ionos.com>2018-12-10 16:52:36 +0100
committerBenjamin Drung <benjamin.drung@cloud.ionos.com>2018-12-18 13:37:07 +0100
commit2bab73b939f196c3dd86988d4d95f71152f18f4c (patch)
tree4690087bb4890184468274b520ef7007829882c8 /lsinitramfs
parentf277309e0b6b57ff2f8f9411c026394b7635f3d6 (diff)
Disable shellcheck for desired behaviour
Sometimes globbing and word splitting is wanted. Therefore explicitly disable the check for these line. Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Diffstat (limited to 'lsinitramfs')
-rwxr-xr-xlsinitramfs1
1 files changed, 1 insertions, 0 deletions
diff --git a/lsinitramfs b/lsinitramfs
index 4f91a6c..1235e4d 100755
--- a/lsinitramfs
+++ b/lsinitramfs
@@ -16,6 +16,7 @@ umi_opts="--list"
OPTIONS=$(getopt -o hl --long help,long -n "$0" -- "$@")
# Check for non-GNU getopt
+# shellcheck disable=SC2181
if [ $? != 0 ] ; then echo "W: non-GNU getopt" >&2 ; exit 1 ; fi
eval set -- "$OPTIONS"