Add ShellCheck's --enable=all inside scripts/

Strengthen static code analysis for shell scripts.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #12914
This commit is contained in:
Damian Szuberski
2022-01-13 19:09:19 +01:00
committed by GitHub
parent 8a7c4efd3c
commit 836136961a
10 changed files with 105 additions and 81 deletions
+10
View File
@@ -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