mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user