mirror of
https://github.com/borgbase/vorta
synced 2024-12-21 23:33:13 +00:00
Migrate to --match-archives
in mount point detection.
* src/vorta/utils.py (get_mount_points)
This commit is contained in:
parent
5e046386d7
commit
696c3fbfe1
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue