Skip to content

Commit

Permalink
BORG_REPO env var: behave the same when unset or when set to empty st…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
ThomasWaldmann committed Aug 24, 2024
1 parent 719b679 commit f265324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/borg/helpers/parseformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def parse(self, text, overrides={}):
if not text:
# we did not get a text to parse, so we try to fetch from the environment
text = os.environ.get(self.repo_env_var)
if text is None:
if not text: # None or ""
return

self.raw = text # as given by user, might contain placeholders
Expand Down

0 comments on commit f265324

Please sign in to comment.