Scripts changes to accomodate centos builds.

Does not contain changes to actually build CLI on centos.
This commit is contained in:
Sridhar Periyasamy 2015-12-15 18:15:31 -08:00
parent d17dff0647
commit 67ad2a8fab
6 changed files with 32 additions and 16 deletions

View file

@ -87,7 +87,12 @@ current_os()
if [ "$uname" = "Darwin" ]; then
echo "osx"
else
echo "linux"
# Detect Distro
if [ "$(cat /etc/*-release | grep -cim1 ubuntu)" -eq 1 ]; then
echo "ubuntu"
elif [ "$(cat /etc/*-release | grep -cim1 centos)" -eq 1 ]; then
echo "centos"
fi
fi
}
@ -107,7 +112,7 @@ check_pre_reqs() {
return 0
fi
if [ "$os" = "linux" ]; then
if [ "$(uname)" = "Linux" ]; then
[ -z "$(ldconfig -p | grep libunwind)" ] && say_err "Unable to locate libunwind. Install libunwind to continue" && _failing=true
[ -z "$(ldconfig -p | grep libssl)" ] && say_err "Unable to locate libssl. Install libssl to continue" && _failing=true
[ -z "$(ldconfig -p | grep libcurl)" ] && say_err "Unable to locate libcurl. Install libcurl to continue" && _failing=true