Merge "Fix an incorrect key path on copying logs"

This commit is contained in:
Jenkins 2016-04-10 02:11:49 +00:00 committed by Gerrit Code Review
commit b882679492
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ PRIVATE_KEY=
echo "If private key is specified, save to temp and use that; else, use default"
if [[ "$KEYPAIR" == "default" ]]; then
PRIVATE_KEY="~/.ssh/id_rsa"
PRIVATE_KEY=$(readlink -f ~/.ssh/id_rsa)
else
PRIVATE_KEY="$(mktemp id_rsa.$SSH_IP.XXX)"
echo -en "$KEYPAIR" > $PRIVATE_KEY