From 573538af6cd1e609c98afd0138d7078e05771a75 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sat, 4 Sep 2021 15:32:11 +0200 Subject: [PATCH] ci/build.sh: CMake: use OSTYPE to determine if on macOS OSTYPE is a built-in variable in bash and exists on all operating systems. --- ci/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build.sh b/ci/build.sh index 4c1129efd..bbd2e47ac 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -33,7 +33,7 @@ if [ "${build_system}" = "cmake" ]; then cd .. if [ "${ID_LIKE}" = "debian" ]; then mv build/*.deb ${DIR}/os/${ARCH}/ - elif [ "${ID}" = "Darwin" ]; then + elif [[ "${OSTYPE}" =~ "darwin" ]]; then mv build/*.zip ${DIR}/os/${ARCH}/ elif [ "${ID}" = "msys2" ]; then mv build/*.zip ${DIR}/os/${ARCH}/ -- 2.40.0