]> granicus.if.org Git - graphviz/commitdiff
ci/build.sh: CMake: use OSTYPE to determine if on MSYS2/MinGW
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 4 Sep 2021 13:33:48 +0000 (15:33 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 7 Sep 2021 05:55:36 +0000 (07:55 +0200)
OSTYPE is a built-in variable in bash and exists on all operating
systems.

ci/build.sh

index 0f71357afb8b5d34302032624dd3af37f156f6b6..37eac218c90b2306ee15ea0e0b01232cbcb4dff5 100755 (executable)
@@ -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