Skip to content

Commit

Permalink
Only infer MSYS and MINGW on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0der committed May 13, 2023
1 parent 82e06b4 commit ed130f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/bash/sdkman-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,11 @@ function infer_platform() {
;;
esac
;;
*)
MSYS*|MINGW*)
echo "$kernel"
;;
*)
echo "Exotic"
esac
}

Expand Down
1 change: 1 addition & 0 deletions src/test/groovy/sdkman/specs/PlatformSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class PlatformSpec extends SdkmanEnvSpecification {
"Darwin" | "" | "darwinx64"
"MSYS64" | "i686" | "msys64"
"MSYS64" | "" | "msys64"
"CYGWIN" | "" | "exotic"
}

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

0 comments on commit ed130f4

Please sign in to comment.