Fix usage of RESTIC_REPOSITORY_FILE #51
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Moritz 2024-04-30 14:51:46 +02:00
parent 8acdb20e5b
commit ae7a14b6f1
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ def cli(loglevel, service, repository, machine_logs):
def init_repo():
if repo:= os.environ['RESTIC_REPOSITORY_FILE']:
if repo:= os.environ.get('RESTIC_REPOSITORY_FILE'):
# RESTIC_REPOSITORY_FILE and RESTIC_REPOSITORY are mutually exclusive
del os.environ['RESTIC_REPOSITORY']
else: