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}"