From 696c3fbfe107709a18a82728544e75ff9521dc66 Mon Sep 17 00:00:00 2001 From: real-yfprojects Date: Tue, 11 Oct 2022 19:41:15 +0200 Subject: [PATCH] Migrate to `--match-archives` in mount point detection. * src/vorta/utils.py (get_mount_points) --- src/vorta/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vorta/utils.py b/src/vorta/utils.py index c3b8e10d..7cf10577 100644 --- a/src/vorta/utils.py +++ b/src/vorta/utils.py @@ -382,8 +382,8 @@ def get_mount_points(repo_url): # Archive mount? ao = '-a' in cmd - if ao or '--glob-archives' in cmd: - i = cmd.index('-a' if ao else '--glob-archives') + if ao or '--match-archives' in cmd: + i = cmd.index('-a' if ao else '--match-archives') if len(cmd) >= i + 1 and not SHELL_PATTERN_ELEMENT.search(cmd[i + 1]): mount_points[mount_point] = cmd[i + 1] else: