This commit is contained in:
github@kiekerjan.isdronken.nl 2021-07-24 21:19:01 +02:00
parent efdd1f2442
commit 75390e11fd
1 changed files with 4 additions and 3 deletions

View File

@ -591,8 +591,9 @@ def get_backup_root(env):
# If BACKUP_ROOT exists, overwrite backup_root variable
if backup_root_env in env:
if not env[backup_root_env] && os.path.isdir(env[backup_root_env]):
backup_root = env[backup_root_env]
tmp = env[backup_root_env]
if not tmp && os.path.isdir(tmp):
backup_root = tmp
backup_root = os.path.join(backup_root, 'backup')