From a490166adad7eb1803957ce46172aa23e0f0f12b Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Tue, 5 May 2020 23:27:15 +0200 Subject: [PATCH] Shellcheck: Add hint for two cases not requiring quotes --- install-zfs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install-zfs.sh b/install-zfs.sh index 6477d74..549eb2b 100755 --- a/install-zfs.sh +++ b/install-zfs.sh @@ -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 \