Skip to content

Commit

Permalink
Handle cases where there isn't a BUILDKITE_REPO_SSH_HOST defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
keithpitt committed Feb 13, 2015
1 parent 846d7e0 commit 61239a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ else
# If enabled, automatically run an ssh-keyscan on the git ssh host, to prevent
# a yes/no promp from appearing when cloning/fetching
if [[ ! -z "${BUILDKITE_AUTO_SSH_FINGERPRINT_VERIFICATION:-}" ]] && [[ "$BUILDKITE_AUTO_SSH_FINGERPRINT_VERIFICATION" == "true" ]]; then
if [[ ! -z "${BUILDKITE_AUTO_SSH_FINGERPRINT_VERIFICATION:-}" ]]; then
# Only bother running the keyscan if the SSH host has been provided by
# Buildkite. It won't be present if the host isn't using the SSH protocol
if [[ ! -z "${BUILDKITE_REPO_SSH_HOST:-}" ]]; then
: ${BUILDKITE_SSH_DIRECTORY:="$HOME/.ssh"}
: ${BUILDKITE_SSH_KNOWN_HOST_PATH:="$BUILDKITE_SSH_DIRECTORY/known_hosts"}

Expand Down

0 comments on commit 61239a6

Please sign in to comment.