Merge "Fix --save-location error in decrypt command"
This commit is contained in:
commit
3c45fbeb6c
|
@ -729,7 +729,7 @@ def decrypt(*, path, save_location, overwrite, site_name):
|
||||||
click.echo(value)
|
click.echo(value)
|
||||||
else:
|
else:
|
||||||
for key, value in decrypted.items():
|
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)
|
file_save_location = os.path.join(save_location, file_name)
|
||||||
files.write(file_save_location, value)
|
files.write(file_save_location, value)
|
||||||
os.chmod(file_save_location, 0o600)
|
os.chmod(file_save_location, 0o600)
|
||||||
|
|
Loading…
Reference in New Issue