Attempt to create ~/.ssh regardless of OS

Former-commit-id: 424cb44c13e9512d57cf6e04215cf975421e1336 [formerly 3a63966827]
Former-commit-id: b5847a53398576802f71ecddf005606de6d97481
This commit is contained in:
2022-11-25 21:40:23 -05:00
parent 51b1b8c6ec
commit 0f4c57bec3
+1 -2
View File
@@ -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 "