From 37dcb497cff6fe5ff92d275b3eca696486c0f5f9 Mon Sep 17 00:00:00 2001
From: Marko Petric <marko.petric@cern.ch>
Date: Mon, 14 Nov 2016 07:39:44 +0100
Subject: [PATCH] Addopt logic for bootstrap

---
 .dd4hep-ci.d/init_x86_64.sh | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/.dd4hep-ci.d/init_x86_64.sh b/.dd4hep-ci.d/init_x86_64.sh
index f3c7f974e..1046a6804 100644
--- a/.dd4hep-ci.d/init_x86_64.sh
+++ b/.dd4hep-ci.d/init_x86_64.sh
@@ -1,17 +1,19 @@
 #!/bin/bash
 
 #Determine which OS you are using
-if [ "$( cat /etc/*-release | grep Scientific )" ]; then
-    OS=slc6
-elif [ "$( cat /etc/*-release | grep CentOS )" ]; then
-    OS=centos7
-elif [ "$(uname)" == "Darwin" ]; then
+if [ "$(uname)" == "Darwin" ]; then
     if [ $(sw_vers -productVersion | awk -F '.' '{print $1 "." $2}') == "10.12" ]; then
         OS=mac1012
         COMPILER_TYPE=clang80
     else
         echo "Bootstrap only works on macOS Sierra (10.12)"
     fi
+elif [ "$(uname)" == "Linux" ]; then
+    if [ "$( cat /etc/*-release | grep Scientific )" ]; then
+        OS=slc6
+    elif [ "$( cat /etc/*-release | grep CentOS )" ]; then
+        OS=centos7
+    fi
 else
     echo "UNKNOWN OS"
     exit 1
-- 
GitLab