From 2bab73b939f196c3dd86988d4d95f71152f18f4c Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Mon, 10 Dec 2018 16:52:36 +0100 Subject: 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 --- lsinitramfs | 1 + 1 file changed, 1 insertion(+) (limited to 'lsinitramfs') 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" -- cgit v1.2.3