From 836136961a306f82e57a2f47b79e638ec843e56b Mon Sep 17 00:00:00 2001 From: Damian Szuberski Date: Thu, 13 Jan 2022 19:09:19 +0100 Subject: Add ShellCheck's `--enable=all` inside `scripts/` Strengthen static code analysis for shell scripts. Reviewed-by: Brian Behlendorf Reviewed-by: John Kennedy Signed-off-by: szubersk Closes #12914 --- scripts/zfs.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scripts/zfs.sh') diff --git a/scripts/zfs.sh b/scripts/zfs.sh index 940c83ffa..0561092a0 100755 --- a/scripts/zfs.sh +++ b/scripts/zfs.sh @@ -75,6 +75,8 @@ while getopts 'hvruS' OPTION; do usage exit ;; + *) + ;; esac done @@ -271,6 +273,10 @@ if [ "$UNLOAD" = "yes" ]; then stack_check_linux unload_modules_linux ;; + *) + echo "unknown system: $UNAME" >&2 + exit 1 + ;; esac fi if [ "$LOAD" = "yes" ]; then @@ -285,6 +291,10 @@ if [ "$LOAD" = "yes" ]; then udevadm trigger udevadm settle ;; + *) + echo "unknown system: $UNAME" >&2 + exit 1 + ;; esac fi -- cgit v1.2.3