Fixed unlocking for "sshyp shear"

This commit is contained in:
2022-01-17 00:16:16 -05:00
parent e5638255a8
commit 5a7b45c3ac
+1 -1
View File
@@ -377,7 +377,7 @@ def remove_data(): # deletes an entry or folder from both the client and the se
_entry_name = _entry_name.replace('/', '', 1)
try:
system(f"gpg -d --output {tmp_dir}sshyp.lock {path.expanduser('~/.config/sshyp/lock.gpg')}")
_unlock = open('{tmp_dir}sshyp.lock', 'r').readlines()
_unlock = open(f"{tmp_dir}sshyp.lock", 'r').readlines()
remove(f"{tmp_dir}sshyp.lock")
except FileNotFoundError:
print('\nAccess denied.\n')