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