From 356a2264c7ced7d87c6d615e57e2af64ad21f1ea Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sun, 4 May 2025 18:51:39 -0600 Subject: [PATCH] import: Prepare for migrate command --- usr/local/share/bastille/import.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/import.sh b/usr/local/share/bastille/import.sh index cf9abda3..3affc7da 100644 --- a/usr/local/share/bastille/import.sh +++ b/usr/local/share/bastille/import.sh @@ -746,9 +746,11 @@ else fi # Check if a running jail matches name or already exist -check_target_exists || error_exit "[ERROR]: Jail: ${TARGET_TRIM} already exists." +if check_target_exists "${TARGET}"; then + error_exit "[ERROR]: Jail: ${TARGET} already exists." +fi if [ -n "${TARGET}" ]; then info "\nAttempting to import jail: ${TARGET}..." jail_import -fi \ No newline at end of file +fi