From 07e89018705f93de3f766fe6f13b25151060821f Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Mon, 19 Feb 2018 23:05:00 +0100
Subject: [PATCH] Reposition ssh log

---
 scripts/rebuild.sh | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/scripts/rebuild.sh b/scripts/rebuild.sh
index 9e1ead2..3f23d7d 100755
--- a/scripts/rebuild.sh
+++ b/scripts/rebuild.sh
@@ -25,12 +25,6 @@ CI_COMMIT_REF_NAME="${CI_COMMIT_REF_NAME:-@local}"
 # The way to clone the repositories for this build
 GITLAB_CHECKOUT_STRATEGY="git@gitlab.idiap.ch:"
 
-# If we build inside a Docker container, disables strict ssh key checking
-if [[ "${OS_SLUG}" == "linux-64" ]]; then
-  log_info 'Disabling strict host key checking for SSH...'
-  echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
-fi
-
 # Overrides some stuff
 if [ "${CI_COMMIT_REF_NAME}" == "@local" ]; then
   BOB_PACKAGE_VERSION="unknown"
@@ -40,6 +34,12 @@ fi
 source ${basedir}/_ci/functions.sh
 unset BOB_PACKAGE_VERSION
 
+# If we build inside a Docker container, disables strict ssh key checking
+if [[ "${OS_SLUG}" == "linux-64" ]]; then
+  log_info 'Disabling strict host key checking for SSH...'
+  echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
+fi
+
 # Setup project variables
 export_env CI_PROJECT_DIR
 export_env CI_PROJECT_NAME
-- 
GitLab