Skip to content

Commit 330767b

Browse files
authored
Fix for new MSYS bash OSTYPE (#1916)
Now `bash` reports OSTYPE as `cygwin` : https://www.msys2.org/news/#2025-02-14-moving-msys2-closer-to-cygwin
1 parent fd7e8c9 commit 330767b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installer/build-installer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ cd ..
5656

5757
grep -q "darwin" <<< $OSTYPE && export OS="mac" || :
5858
# All windows platforms can be enumerated below
59-
[ $OSTYPE == "msys" ] && export OS="win32" || :
59+
[[ $OSTYPE == "msys" || $OSTYPE == "cygwin" ]] && export OS="win32" || :
6060
[ $OSTYPE == "linux-gnu" ] && OS_EXT=$OS`getconf LONG_BIT` || OS_EXT=$OS
6161

6262
if [ $OS == "win32" ] ; then

0 commit comments

Comments
 (0)