Skip to content

Commit

Permalink
Fix missed directory
Browse files Browse the repository at this point in the history
  • Loading branch information
claudyus authored Sep 13, 2017
1 parent 5864b3f commit 250c22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

mkdir -p ~/.ssh
if [[ -n "$SSH_PRIVATE_KEY" ]]; then
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
Expand All @@ -9,7 +10,6 @@ else
fi

# set or ignore know_hosts file
mkdir -p ~/.ssh
if [[ -n "$KNOW_HOSTS_LINE" ]]; then
echo $KNOW_HOSTS_LINE > ~/.ssh/known_hosts
else
Expand Down

0 comments on commit 250c22f

Please sign in to comment.