From 510807657bff07128659f1244f6f2bb06b70ff07 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Tue, 6 May 2025 15:36:59 -0600 Subject: [PATCH] Update import.sh --- usr/local/share/bastille/import.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/import.sh b/usr/local/share/bastille/import.sh index b0824379..9d004840 100644 --- a/usr/local/share/bastille/import.sh +++ b/usr/local/share/bastille/import.sh @@ -715,8 +715,9 @@ jail_import() { # Check for user specified file location if echo "${TARGET}" | grep -q '\/'; then + GETDIR="${TARGET}" TARGET="$(basename ${TARGET})" - bastille_backupsdir="$(dirname ${TARGET})" + bastille_backupsdir="$(dirname ${GETDIR})" fi # Check if backups directory/dataset exist @@ -739,7 +740,7 @@ else error_exit "[ERROR]: Archive '${TARGET}' not found." else # Assume user will import from standard input - TARGET_TRIM=${TARGET} + TARGET_TRIM="${TARGET}" USER_IMPORT="1" fi fi