Fix broken tests.

This commit is contained in:
Marco Vermeulen
2017-03-05 17:55:44 +00:00
parent 0d87947ee8
commit 2c8d952521

View File

@@ -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"
}
}