Skip to content

Commit

Permalink
Ensure no empty exclude-if-present is added (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu authored Dec 5, 2024
1 parent 75c22d4 commit 2cd1de1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vorta/borg/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cd1de1

Please sign in to comment.