Skip to content

Commit

Permalink
Fix broken tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0der committed Mar 5, 2017
1 parent 0d87947 commit 2c8d952
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/test/groovy/sdkman/support/UnixUtils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -12,7 +12,7 @@ class UnixUtils {
result = "Darwin"
break
case "Linux":
result = "Linux"
result = "Linux${arch()}"
break
case "FreeBSD":
result = "FreeBSD"
Expand All @@ -22,4 +22,8 @@ class UnixUtils {
}
result
}

private static arch = {
System.getProperty("os.arch")?.endsWith("86") ? "32" : "64"
}
}

0 comments on commit 2c8d952

Please sign in to comment.