Skip to content

Commit

Permalink
Merge pull request #2264 from appveyor/fix_dirs_in_enable_ssh
Browse files Browse the repository at this point in the history
Create .ssh dir if it not exist
  • Loading branch information
FeodorFitsner authored Apr 19, 2018
2 parents d955c80 + 29ecd37 commit e725cc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/enable-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ IFS='.' read -r -a INT_IP_ARR <<< "$INT_IP"
PORT=$(( 22000 + (${INT_IP_ARR[2]} - 0) * 256 + ${INT_IP_ARR[3]} ))

# add ssh key (if set) to authorized_keys
mkdir -p ${HOME}/.ssh
(
echo "#Added by Appveyor Build Agent"
echo "${APPVEYOR_SSH_KEY}"
Expand Down

0 comments on commit e725cc2

Please sign in to comment.