From 8b1a991ebd75aec231175b5e65561fc01b33e712 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Tue, 19 Feb 2019 09:23:01 -0500 Subject: [PATCH] only do the ssh dance in CI --- _template/build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/_template/build.sh b/_template/build.sh index 70cac47..bd3f910 100755 --- a/_template/build.sh +++ b/_template/build.sh @@ -1,10 +1,12 @@ #!/bin/bash cd "$(dirname $0)"/.. -# write out SSH key -[ "$SSH_KEY" ] || exit 1 -echo "$SSH_KEY" > ~/.ssh/id_rsa -chmod 600 ~/.ssh/id_rsa +if [ "$CI" ]; then + # write out SSH key + [ "$SSH_KEY" ] || exit 1 + echo "$SSH_KEY" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa +fi # branch names DEFAULT=master