#!/bin/bash
set -e
eval "$(ssh-agent -s)"
chmod 700 travis
openssl aes-256-cbc -K $encrypted_fa51861454fb_key -iv $encrypted_fa51861454fb_iv -in travis/deploy.enc -out travis/deploy -d
chmod 600 travis/deploy
ssh-add travis/deploy
mkdir -m 700 -p ~/.ssh
echo -e "Host *\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
git remote add deploy "git@thewhitehat.club:go/src/github.com/WhiteHatCP/seclab-listener"
PUSH="$(git push deploy 2>&1)"
echo "$PUSH"
echo "$PUSH" | grep -q "SUCCESS"

#!/bin/bash
set -e
eval "$(ssh-agent -s)"
chmod 700 travis
openssl aes-256-cbc -K $encrypted_fa51861454fb_key -iv $encrypted_fa51861454fb_iv -in travis/deploy.enc -out travis/deploy -d
chmod 600 travis/deploy
ssh-add travis/deploy
mkdir -m 700 -p ~/.ssh
echo -e "Host *\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
git remote add deploy "git@thewhitehat.club:go/src/github.com/WhiteHatCP/seclab-listener"
echo "Added deploy remote"
PUSH="$(git push deploy 2>&1)"
echo "$PUSH"
echo "$PUSH" | grep -q "SUCCESS"

Add a debug line to travis script
Add a debug line to travis script
