From 0f4c57bec3e16ece6fe4baa140a56ce7c936f664 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 Former-commit-id: 424cb44c13e9512d57cf6e04215cf975421e1336 [formerly 3a639668271d29db310eab21b01feb683504a02a] Former-commit-id: b5847a53398576802f71ecddf005606de6d97481 --- 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 "