We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77e0427 commit bc425f9Copy full SHA for bc425f9
src/main/groovy/com/avast/gradle/dockercompose/DockerExecutor.groovy
@@ -48,7 +48,7 @@ class DockerExecutor {
48
49
String getDockerPlatform() {
50
String osType = getDockerInfo().collect { it.trim() }.find { it.startsWith('OSType:') }
51
- osType.empty ? System.getProperty("os.name") : osType.substring('OSType:'.length()).trim()
+ osType == null || osType.empty ? System.getProperty("os.name") : osType.substring('OSType:'.length()).trim()
52
}
53
54
String getContainerPlatform(Map<String, Object> inspection) {
0 commit comments