1
0
Fork 0
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:
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,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