common.sh: support OSTYPE == cygwin for MSYS2 (#2028)

(cherry picked from commit f30214464c0613c281c91be192c2ef8360f3543e)
This commit is contained in:
Takase
2025-05-18 22:54:38 +08:00
committed by takase1121
parent 3479e31a4e
commit fdd5ab8ed0
+1 -1
View File
@@ -62,7 +62,7 @@ addons_install() {
}
get_platform_name() {
if [[ "$OSTYPE" == "msys" ]]; then
if [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
echo "windows"
elif [[ "$OSTYPE" == "darwin"* ]]; then
echo "macos"