Skip to content

Commit c05c7e4

Browse files
committed
Only infer MSYS and MINGW on Windows.
1 parent 41a2743 commit c05c7e4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/bash/sdkman-init.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,11 @@ function infer_platform() {
8181
;;
8282
esac
8383
;;
84-
*)
84+
MSYS*|MINGW*)
8585
echo "$kernel"
86+
;;
87+
*)
88+
echo "Exotic"
8689
esac
8790
}
8891

src/test/groovy/sdkman/specs/PlatformSpec.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class PlatformSpec extends SdkmanEnvSpecification {
3939
"Darwin" | "" | "darwinx64"
4040
"MSYS64" | "i686" | "msys64"
4141
"MSYS64" | "" | "msys64"
42+
"CYGWIN" | "" | "exotic"
4243
}
4344

4445
def "should enable rosetta 2 compatibility mode with environment variable"() {

0 commit comments

Comments
 (0)