hooks/*: code cleanup

This commit is contained in:
illiliti
2021-05-10 14:23:34 +03:00
parent e8858c1d34
commit 61e9112142
19 changed files with 33 additions and 41 deletions

View File

@@ -1,7 +1,7 @@
# vim: set ft=sh:
# shellcheck shell=sh
#
# false positive
# https://www.shellcheck.net/wiki/SC2154
# shellcheck disable=2154
[ "$hostonly" = 1 ] &&

View File

@@ -1,11 +1,9 @@
# vim: set ft=sh:
# shellcheck shell=sh
#
# false positive
# shellcheck disable=2154
#
# word splitting is safe by design
# shellcheck disable=2068
# https://www.shellcheck.net/wiki/SC2154
# https://www.shellcheck.net/wiki/SC2068
# shellcheck disable=2154,2068
[ "$break" = lvm ] && { print "break before lvm.init"; sh; }