more shellcheck fixes
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
# vim: set ft=sh:
|
||||
# shellcheck shell=sh
|
||||
#
|
||||
# false positive
|
||||
# shellcheck disable=2154
|
||||
#
|
||||
# word splitting is safe by design
|
||||
# shellcheck disable=2086
|
||||
#
|
||||
# handle_luks()
|
||||
{
|
||||
@@ -18,8 +25,6 @@
|
||||
# see https://bugs.archlinux.org/task/56771
|
||||
[ -e /lib/libgcc_s.so.1 ] && copy_library /lib/libgcc_s.so.1
|
||||
|
||||
# word splitting is safe by design
|
||||
# shellcheck disable=2086
|
||||
IFS=,; set -- $luks_opts; unset IFS
|
||||
|
||||
set -C; for opt; do case "${opt%%=*}" in
|
||||
|
@@ -1,4 +1,11 @@
|
||||
# vim: set ft=sh:
|
||||
# shellcheck shell=sh
|
||||
#
|
||||
# false positive
|
||||
# shellcheck disable=2154
|
||||
#
|
||||
# word splitting is safe by design
|
||||
# shellcheck disable=2086,2068
|
||||
#
|
||||
# unlock_luks()
|
||||
{
|
||||
|
@@ -1,4 +1,11 @@
|
||||
# vim: set ft=sh:
|
||||
# shellcheck shell=sh
|
||||
#
|
||||
# false positive
|
||||
# shellcheck disable=2154
|
||||
#
|
||||
# word splitting is safe by design
|
||||
# shellcheck disable=2086
|
||||
#
|
||||
# handle_lvm()
|
||||
{
|
||||
@@ -26,8 +33,6 @@
|
||||
use_lvmetad = 0
|
||||
}"
|
||||
|
||||
# word splitting is safe by design
|
||||
# shellcheck disable=2086
|
||||
IFS=,; set -- $lvm_opts; unset IFS
|
||||
|
||||
for opt; do case "$opt" in
|
||||
|
@@ -1,4 +1,11 @@
|
||||
# vim: set ft=sh:
|
||||
# shellcheck shell=sh
|
||||
#
|
||||
# false positive
|
||||
# shellcheck disable=2154
|
||||
#
|
||||
# word splitting is safe by design
|
||||
# shellcheck disable=2086,2068
|
||||
#
|
||||
# trigger_lvm()
|
||||
{
|
||||
@@ -10,7 +17,7 @@
|
||||
|
||||
for opt; do case "$opt" in
|
||||
discard=1) lvm_discard="--config=devices{issue_discards=1}" ;;
|
||||
config=0) : > /etc/lvm/lvm.conf ;;
|
||||
config=0) : > /etc/lvm/lvm.conf ;;
|
||||
group=*) lvm_group="${opt#*=}" ;;
|
||||
name=*) lvm_name="/${opt#*=}" ;;
|
||||
tag=*) lvm_tag="@${opt#*=}" ;;
|
||||
|
Reference in New Issue
Block a user