From 73e97ab18f5dba98372d3f100559dba1c5c3f687 Mon Sep 17 00:00:00 2001 From: Sven R Date: Tue, 25 Feb 2020 12:43:16 +0100 Subject: [PATCH] fix_import --- usr/local/share/bastille/import.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/import.sh b/usr/local/share/bastille/import.sh index 21d4412..c851b53 100644 --- a/usr/local/share/bastille/import.sh +++ b/usr/local/share/bastille/import.sh @@ -179,7 +179,7 @@ fi # Check if archive exist then trim archive name if [ "$(ls "${bastille_backupsdir}" | awk "/^${TARGET}$/")" ]; then - TARGET_TRIM=$(echo ${TARGET} | sed "s/_[0-9]*-[0-9]*-[0-9]*-[0-9]*[0-9]*[0-9]*.[txz]\{2,3\}//") + TARGET_TRIM=$(echo ${TARGET} | sed "s/_[0-9]*-[0-9]*-[0-9]*-[0-9]*.[txz]\{2,3\}//") else error_notify "${COLOR_RED}Archive '${TARGET}' not found.${COLOR_RESET}" fi