Adds arm64 dection of running os in tests

This commit is contained in:
Damiaan van der Kruk
2020-06-24 22:27:47 +10:00
committed by Marco Vermeulen
parent 134d506e14
commit cf436ed8f2

View File

@@ -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) {