From 3a639668271d29db310eab21b01feb683504a02a Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Fri, 25 Nov 2022 21:40:23 -0500 Subject: [PATCH] Attempt to create ~/.ssh regardless of OS --- lib/sshyp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index dfb9057..a992a1e 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -292,8 +292,7 @@ def tweak(): # runs configuration wizard f"configured\n\nsync support requires a unique ssh key - would you like to have this " f"automatically generated? (Y/n/o(ffline)) ")) if _ssh_gen.lower() != 'n' and _ssh_gen.lower() != 'o' and _ssh_gen.lower() != 'offline': - if uname()[0] == 'Haiku': - Path(f"{expanduser('~')}/.ssh").mkdir(0o700, exist_ok=True) + Path(f"{expanduser('~')}/.ssh").mkdir(0o700, exist_ok=True) system('ssh-keygen -t ed25519 -f ~/.ssh/sshyp') elif _ssh_gen.lower() == 'n': print(f"\n\u001b[4;1mensure that the key file you are using is located at "