not on bash

This commit is contained in:
Steven Agyekum 2019-11-12 22:55:41 +01:00 committed by GitHub
parent 7d8c19d72a
commit f8b88bb4fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,9 @@ set -eu
# Set deploy key
SSH_PATH="$HOME/.ssh"
# 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
echo "$DEPLOY_KEY" > "$SSH_PATH/deploy_key"
# Set r+w to user only