mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 07:43:09 +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,6 +171,7 @@ def prepare(cls, profile):
|
|||
patterns.append(f[3:].strip()) # Remove the '[x]' prefix
|
||||
|
||||
for pattern in patterns:
|
||||
if pattern.strip():
|
||||
cmd.extend(['--exclude-if-present', pattern])
|
||||
|
||||
# Add excludes
|
||||
|
|
Loading…
Reference in a new issue