mirror of
https://github.com/borgbase/vorta
synced 2025-03-11 14:49:16 +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 @@ class BorgCreateJob(BorgJob):
|
||||||
patterns.append(f[3:].strip()) # Remove the '[x]' prefix
|
patterns.append(f[3:].strip()) # Remove the '[x]' prefix
|
||||||
|
|
||||||
for pattern in patterns:
|
for pattern in patterns:
|
||||||
|
if pattern.strip():
|
||||||
cmd.extend(['--exclude-if-present', pattern])
|
cmd.extend(['--exclude-if-present', pattern])
|
||||||
|
|
||||||
# Add excludes
|
# Add excludes
|
||||||
|
|
Loading…
Add table
Reference in a new issue