aboutsummaryrefslogtreecommitdiff
path: root/ssh-keygen-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-keygen-wrapper')
-rwxr-xr-xssh-keygen-wrapper3
1 files changed, 3 insertions, 0 deletions
diff --git a/ssh-keygen-wrapper b/ssh-keygen-wrapper
index 9e6fd1a..b9f9cbb 100755
--- a/ssh-keygen-wrapper
+++ b/ssh-keygen-wrapper
@@ -24,5 +24,8 @@ if [ "$TYPE" == "rsa" ]; then
OPTS="-b 4096"
fi
+# Ensure destination folder exists
+mkdir -p $HOME/.ssh/keys/$TYPE
+
# Dispatch
ssh-keygen -t $TYPE $OPTS -f $HOME/.ssh/keys/$TYPE/$HANDLE -C "$HANDLE"