1
0
Fork 0
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:
Thomas Waldmann 2024-08-24 15:08:27 +02:00
parent 7714b6542a
commit ec8a127b01
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

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