mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-06 19:49:20 +00:00
BORG_REPO env var: behave the same when unset or when set to empty string
This commit is contained in:
parent
7714b6542a
commit
ec8a127b01
1 changed files with 1 additions and 1 deletions
|
@ -512,7 +512,7 @@ class Location:
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue