not on bash
This commit is contained in:
parent
7d8c19d72a
commit
f8b88bb4fa
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,9 @@ set -eu
|
||||||
# Set deploy key
|
# Set deploy key
|
||||||
SSH_PATH="$HOME/.ssh"
|
SSH_PATH="$HOME/.ssh"
|
||||||
# Create .ssh dir if it doesn't exist
|
# Create .ssh dir if it doesn't exist
|
||||||
[[ -d "$SSH_PATH" ]] || mkdir "$SSH_PATH"
|
if [ ! -d "$SSH_PATH" ]; then
|
||||||
|
mkdir "$SSH_PATH"
|
||||||
|
fi
|
||||||
# Place deploy_key into .ssh dir
|
# Place deploy_key into .ssh dir
|
||||||
echo "$DEPLOY_KEY" > "$SSH_PATH/deploy_key"
|
echo "$DEPLOY_KEY" > "$SSH_PATH/deploy_key"
|
||||||
# Set r+w to user only
|
# Set r+w to user only
|
||||||
|
|
Loading…
Reference in a new issue