Skip to content
Snippets Groups Projects
Commit 37dcb497 authored by Marko Petric's avatar Marko Petric
Browse files

Addopt logic for bootstrap

parent 6e1094a6
No related branches found
No related tags found
No related merge requests found
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment