Merge "Fix --save-location error in decrypt command"

This commit is contained in:
Zuul 2019-05-29 14:12:01 +00:00 committed by Gerrit Code Review
commit 3c45fbeb6c
1 changed files with 1 additions and 1 deletions

View File

@ -729,7 +729,7 @@ def decrypt(*, path, save_location, overwrite, site_name):
click.echo(value)
else:
for key, value in decrypted.items():
file_name = os.path.split(key)
file_name = os.path.split(key)[1]
file_save_location = os.path.join(save_location, file_name)
files.write(file_save_location, value)
os.chmod(file_save_location, 0o600)