From ffe6a78b1c68288d34899e94aba5dff41d2bb770 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sat, 4 Sep 2021 15:33:48 +0200 Subject: [PATCH] ci/build.sh: CMake: use OSTYPE to determine if on MSYS2/MinGW 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 0f71357af..37eac218c 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -35,7 +35,7 @@ if [ "${build_system}" = "cmake" ]; then mv build/*.deb ${DIR}/os/${ARCH}/ elif [[ "${OSTYPE}" =~ "darwin" ]]; then mv build/*.zip ${DIR}/os/${ARCH}/ - elif [ "${ID}" = "msys2" ]; then + elif [ "${OSTYPE}" = "msys" ]; then mv build/*.zip ${DIR}/os/${ARCH}/ mv build/*.exe ${DIR}/os/${ARCH}/ else -- 2.40.0