Shellcheck: Add hint for two cases not requiring quotes

This commit is contained in:
Saverio Miroddi 2020-05-05 23:27:15 +02:00
parent 0d6f69bbbd
commit a490166ada
1 changed files with 3 additions and 0 deletions

View File

@ -935,6 +935,8 @@ function create_pools {
#
# Stdin is ignored if the encryption is not set (and set via prompt).
#
# shellcheck disable=SC2086 # quoting $v_pools_raid_type; barring invalid user input, the values are guaranteed not to
# need quoting.
zpool create \
"${encryption_options[@]}" \
"${v_rpool_tweaks[@]}" \
@ -944,6 +946,7 @@ function create_pools {
# `-d` disable all the pool features (not used here);
#
# shellcheck disable=SC2086 # see above
zpool create \
"${v_bpool_tweaks[@]}" \
-O devices=off -O mountpoint=/boot -R "$c_zfs_mount_dir" -f \