From f94c273a9d3f687db489aa3a4b979da5cd165674 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sun, 11 May 2025 18:28:12 -0600 Subject: [PATCH] Update migrate.sh --- usr/local/share/bastille/migrate.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/usr/local/share/bastille/migrate.sh b/usr/local/share/bastille/migrate.sh index 1b0f96e6..8f492021 100644 --- a/usr/local/share/bastille/migrate.sh +++ b/usr/local/share/bastille/migrate.sh @@ -115,6 +115,13 @@ while [ "$#" -gt 0 ]; do esac done +# Validate options +if [ "${LIVE}" -eq 1 ]; then + if ! checkyesno bastille_zfs_enable; then + error_exit "[ERROR]: [-l|--live] can only be used with ZFS systems." + fi +fi + if [ "$#" -ne 2 ]; then usage fi