Update deploy_master.sh

This commit is contained in:
Andrea Cavalli 2020-08-18 19:43:52 +02:00
parent bea1a4a46c
commit c3df11b4a1

View File

@ -20,9 +20,9 @@ echo "TRAVIS_CPU_ARCH_STANDARD: $TRAVIS_CPU_ARCH_STANDARD"
# Setup ssh
mkdir -p ~/.ssh
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
echo "$GIT_IGN_TRAVIS_DEPLOY_PRIVATE_KEY" | base64 -d > ~/.ssh/id_rsa
else
echo "$GIT_IGN_TRAVIS_DEPLOY_PRIVATE_KEY" | base64.exe -d > ~/.ssh/id_rsa
else
echo "$GIT_IGN_TRAVIS_DEPLOY_PRIVATE_KEY" | base64 -d > ~/.ssh/id_rsa
fi
chmod 600 ~/.ssh/id_rsa || true
ssh-keyscan ssh.git.ignuranza.net >> $HOME/.ssh/known_hosts