Skip to content

Commit cf436ed

Browse files
dvdkrukmarc0der
authored andcommitted
Adds arm64 dection of running os in tests
1 parent 134d506 commit cf436ed

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/test/groovy/sdkman/support/UnixUtils.groovy

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ package sdkman.support
33
class UnixUtils {
44

55
static getPlatform() {
6-
asSdkmanPlatform(System.getProperty("os.name"))
6+
def os = System.getProperty("os.name")
7+
def arch = System.getProperty("os.arch")
8+
9+
if("aarch64".equals(arch)) {
10+
asSdkmanPlatform("LinuxARM64")
11+
} else {
12+
asSdkmanPlatform(os)
13+
}
714
}
815

916
static asSdkmanPlatform(platform) {

0 commit comments

Comments
 (0)