exist_ok
All checks were successful
/ job (push) Successful in 7m9s

This commit is contained in:
Marc Beninca 2024-06-09 18:52:29 +02:00
parent 49c046cb3d
commit 4ebb931490
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -107,7 +107,7 @@ def set_ssh(*arguments) -> None:
home = Path("~").expanduser() home = Path("~").expanduser()
# #
ssh = home / ".ssh" ssh = home / ".ssh"
ssh.mkdir(parents=True) ssh.mkdir(exist_ok=True, parents=True)
ssh.chmod(0o700) ssh.chmod(0o700)
# #
key = ssh / f"id_{ssh_type}" key = ssh / f"id_{ssh_type}"