From 40213aa518e9a67f8d3ec2c5e90457e7355c62c4 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Tue, 11 Oct 2022 09:47:24 -0400 Subject: [PATCH] Fixed decryption of multi-word entries --- lib/sshyp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index a9fa9e4..e012bc7 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -148,7 +148,7 @@ def decrypt(_entry_dir, _shm_folder, _shm_entry, _gpg_command, _tmp_dir=path.exp if _shm_folder == 0 and _shm_entry == 0: _command = f"{_gpg_command} -qd --output /dev/null {path.expanduser('~/.config/sshyp/lock.gpg')}" else: - _command = f"{_gpg_command} -qd --output {_tmp_dir}{_shm_folder}/{_shm_entry} {_entry_dir}.gpg" + _command = f"{_gpg_command} -qd --output {_tmp_dir}{_shm_folder}/{_shm_entry} '{_entry_dir}.gpg'" try: run(_command, shell=True, stderr=PIPE, check=True, close_fds=True) except CalledProcessError: