Skip to content

Commit

Permalink
fix docker info OSType parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
karbes committed Aug 13, 2019
1 parent 647e05b commit 5b1c6fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ class DockerExecutor {
}

String getDockerPlatform() {
String osType = getDockerInfo().find { it.startsWith('OSType:') }
String osType = executeToString('info', '--format', '{{.OSType}}')
Platform
osType.empty ? System.getProperty("os.name") : osType.substring('OSType:'.length()).trim()
osType.empty ? System.getProperty("os.name") : osType
}

VersionNumber getVersion() {
Expand Down

0 comments on commit 5b1c6fc

Please sign in to comment.