1
0
Fork 0
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:
Manu 2024-12-05 14:02:54 +00:00 committed by GitHub
parent 75c22d4953
commit 2cd1de1f16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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