From 8b3bf04945f7b4ced671771f719d153a61177e76 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sat, 5 Nov 2022 23:57:09 -0400 Subject: [PATCH] Fixed device id fetching (and quick-unlock verification) on Haiku --- lib/sshyp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index b843f8b..6617ec7 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -867,7 +867,7 @@ if __name__ == "__main__": ip = ssh_info[1].rstrip() port = ssh_info[2].rstrip() directory_ssh = str(ssh_info[4].rstrip()) - client_device_id = listdir(path.expanduser('~/.config/sshyp/devices'))[0] + client_device_id = listdir(path.expanduser('~/.config/sshyp/devices'))[0].rstrip() ssh_error = int(open(path.expanduser('~/.config/sshyp/ssh-error')).read().rstrip()) if ssh_error != 0: ssh_error = copy_id_check(port, username_ssh, ip, client_device_id)