Fix build on mac

MacOS 13.0 bundles bash 3.2 which doesn't understand ,, for lowercase.
This commit is contained in:
Conrad Irwin 2022-11-29 22:35:56 -07:00
parent 833a91d22d
commit 407b3116db

View file

@ -6,7 +6,7 @@ THIS_SCRIPT=$(dirname "$0");
# "RelWithDebInfo" but custom ones can also be defined so we pass it verbatim.
BUILD_TYPE=$1;
LIB_TYPE=$2;
if [ "${LIB_TYPE,,}" == "shared" ]; then
if [ "$(echo "${LIB_TYPE}" | tr '[:upper:]' '[:lower:]')" == "shared" ]; then
SHARED_TOGGLE="ON"
else
SHARED_TOGGLE="OFF"