mirror of
https://github.com/borgbase/vorta
synced 2024-12-21 23:33:13 +00:00
Ensure no empty exclude-if-present is added (#2136)
This commit is contained in:
parent
75c22d4953
commit
2cd1de1f16
1 changed files with 2 additions and 1 deletions
|
@ -171,7 +171,8 @@ def prepare(cls, profile):
|
|||
patterns.append(f[3:].strip()) # Remove the '[x]' prefix
|
||||
|
||||
for pattern in patterns:
|
||||
cmd.extend(['--exclude-if-present', pattern])
|
||||
if pattern.strip():
|
||||
cmd.extend(['--exclude-if-present', pattern])
|
||||
|
||||
# Add excludes
|
||||
# Partly inspired by borgmatic/borgmatic/borg/create.py
|
||||
|
|
Loading…
Reference in a new issue