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