Skip to content

Commit e014725

Browse files
authored
Merge pull request #5 from platterz/master
Ensure SSH keys are Copied with Correct Formatting
2 parents f9c78ef + db8e1f0 commit e014725

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/compile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ git remote add origin "$GIT_REPO_URL"
3737
# install the ssh key
3838
mkdir -p ~/.ssh
3939
ssh-keyscan -H github.com >> ~/.ssh/known_hosts 2> /dev/null
40-
cat "$ENV_DIR/GIT_SSH_KEY" > ~/.ssh/id_rsa
40+
cp "$ENV_DIR/GIT_SSH_KEY" ~/.ssh/id_rsa
41+
echo >> ~/.ssh/id_rsa
4142
chmod 600 ~/.ssh/id_rsa
4243

4344
# ignore/hide ssh warnings

0 commit comments

Comments
 (0)