From 68afbdf0f9a64452a5655832f4ae9e1c8f293400 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Tue, 19 Feb 2019 09:22:25 -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 c2a4ec1..b947f9e 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=v3