From 13b37ce16da906b9183955878cd2b98c7dc53e1a Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 23 Sep 2020 09:24:15 +0200 Subject: [PATCH] Create folder and shuffle order --- plugin.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin.sh b/plugin.sh index a4630c2..b504645 100755 --- a/plugin.sh +++ b/plugin.sh @@ -2,8 +2,10 @@ load_deploy_key() { - eval `ssh-agent` + mkdir -p "$HOME/.ssh/" ssh-keyscan "$PLUGIN_HOST" > "$HOME/.ssh/known_hosts" + + eval `ssh-agent` echo "$PLUGIN_DEPLOY_KEY" | ssh-add - }