Update migrate.sh

This commit is contained in:
tschettervictor
2025-05-11 18:28:12 -06:00
committed by GitHub
parent b80744f923
commit f94c273a9d

View File

@@ -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