From 85d656bd114908fc97333331ccc4c9825a4d4cae Mon Sep 17 00:00:00 2001 From: Juan David Hurtado G Date: Sun, 8 Dec 2024 15:12:15 -0500 Subject: [PATCH] setup: shellcheck --- usr/local/share/bastille/setup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/local/share/bastille/setup.sh b/usr/local/share/bastille/setup.sh index 147bfc9d..f6153e5b 100644 --- a/usr/local/share/bastille/setup.sh +++ b/usr/local/share/bastille/setup.sh @@ -123,10 +123,10 @@ configure_zfs() { else ## attempt to determine bastille_zroot from `zpool list` bastille_zroot=$(zpool list | grep -v NAME | awk '{print $1}') - if [ $(echo "${bastille_zroot}" | wc -l) -gt 1 ]; then - error_notify "Error: Multiple ZFS pools available:\n"${bastille_zroot}"" - error_notify "Set desired pool using \"sysrc -f "${bastille_config}" bastille_zfs_zpool=ZPOOL_NAME\"" - error_exit "Don't forget to also enable ZFS using \"sysrc -f "${bastille_config}" bastille_zfs_enable=YES\"" + if [ "$(echo "${bastille_zroot}" | wc -l)" -gt 1 ]; then + error_notify "Error: Multiple ZFS pools available:\n${bastille_zroot}" + error_notify "Set desired pool using \"sysrc -f ${bastille_config} bastille_zfs_zpool=ZPOOL_NAME\"" + error_exit "Don't forget to also enable ZFS using \"sysrc -f ${bastille_config} bastille_zfs_enable=YES\"" fi sysrc -f "${bastille_config}" bastille_zfs_enable=YES sysrc -f "${bastille_config}" bastille_zfs_zpool="${bastille_zroot}"