mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-01-30 17:23:02 -05:00
Fix broken tests.
This commit is contained in:
@@ -2,7 +2,7 @@ package sdkman.support
|
||||
|
||||
class UnixUtils {
|
||||
static getPlatform() {
|
||||
asUname(System.getProperty("os.name"))
|
||||
asUname(System.getProperty("os.name")+arch())
|
||||
}
|
||||
|
||||
static asUname(platform) {
|
||||
@@ -12,7 +12,7 @@ class UnixUtils {
|
||||
result = "Darwin"
|
||||
break
|
||||
case "Linux":
|
||||
result = "Linux"
|
||||
result = "Linux${arch()}"
|
||||
break
|
||||
case "FreeBSD":
|
||||
result = "FreeBSD"
|
||||
@@ -22,4 +22,8 @@ class UnixUtils {
|
||||
}
|
||||
result
|
||||
}
|
||||
|
||||
private static arch = {
|
||||
System.getProperty("os.arch")?.endsWith("86") ? "32" : "64"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user