From e82938904d20ed55e609de80d9cbeaec855e4a24 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Mon, 5 May 2025 14:50:33 -0600 Subject: [PATCH] migrate: Error if no migratedir --- usr/local/share/bastille/migrate.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/local/share/bastille/migrate.sh b/usr/local/share/bastille/migrate.sh index d51c94cf..12a355aa 100644 --- a/usr/local/share/bastille/migrate.sh +++ b/usr/local/share/bastille/migrate.sh @@ -132,6 +132,10 @@ migrate_create_export() { # Ensure migrate directory is in place ## ${bastille_migratedir} + if [ -z "${bastille_migratedir}" ]; then + error_notify "[ERROR]: No migrate directory found." + error_exit "Did you diff the config file?" + fi if [ ! -d "${bastille_migratedir}" ]; then if checkyesno bastille_zfs_enable; then if [ -n "${bastille_zfs_zpool}" ]; then