From 4ebb93149061320291f1617ec8cbe85808d23ae0 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 9 Jun 2024 18:52:29 +0200 Subject: [PATCH] exist_ok --- cd/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cd/__init__.py b/cd/__init__.py index 4d15ce0..a23ea49 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -107,7 +107,7 @@ def set_ssh(*arguments) -> None: home = Path("~").expanduser() # ssh = home / ".ssh" - ssh.mkdir(parents=True) + ssh.mkdir(exist_ok=True, parents=True) ssh.chmod(0o700) # key = ssh / f"id_{ssh_type}"