mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-06-07 23:37:27 -04:00
Adds arm64 dection of running os in tests
This commit is contained in:
committed by
Marco Vermeulen
parent
134d506e14
commit
cf436ed8f2
@@ -3,7 +3,14 @@ package sdkman.support
|
||||
class UnixUtils {
|
||||
|
||||
static getPlatform() {
|
||||
asSdkmanPlatform(System.getProperty("os.name"))
|
||||
def os = System.getProperty("os.name")
|
||||
def arch = System.getProperty("os.arch")
|
||||
|
||||
if("aarch64".equals(arch)) {
|
||||
asSdkmanPlatform("LinuxARM64")
|
||||
} else {
|
||||
asSdkmanPlatform(os)
|
||||
}
|
||||
}
|
||||
|
||||
static asSdkmanPlatform(platform) {
|
||||
|
||||
Reference in New Issue
Block a user