import: Prepare for migrate command

This commit is contained in:
tschettervictor
2025-05-04 18:51:39 -06:00
committed by GitHub
parent c1ecf22d6f
commit 356a2264c7

View File

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