From f024f9d9e848ba8e0e8cf2af7591ca2783987c18 Mon Sep 17 00:00:00 2001 From: David Prevot Date: Wed, 22 Nov 2023 17:23:59 +0100 Subject: [PATCH] IS_EVOBACKUP_EXCLUDE_MOUNT: fix another regression introduced in previous release --- linux/evocheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/evocheck.sh b/linux/evocheck.sh index 64caaf2..fa4e6d6 100755 --- a/linux/evocheck.sh +++ b/linux/evocheck.sh @@ -596,8 +596,8 @@ check_evobackup_exclude_mount() { # then we verify that every mount is excluded if ! grep -q -- "^\s*--one-file-system" "${evobackup_file}"; then # old releases of evobackups don't have version - if grep -q "^VERSION="23.11"; then - evobackup_version=$(sed -E -n 's/VERSION="23.11") + if grep -q "^VERSION=" "${evobackup_file}"; then + evobackup_version=$(sed -E -n 's/VERSION="(.*)"/\1/p' "${evobackup_file}") # versions over 22.12 use a new syntax to exclude rsync files if dpkg --compare-versions "$evobackup_version" ge 22.12 ; then sed -En '/RSYNC_EXCLUDES="/,/"/ {s/(RSYNC_EXCLUDES=|")//g;p}' "${evobackup_file}" > "${excludes_file}"