File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/main/kotlin/com/cognifide/gradle/environment/docker Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ class Container(val docker: Docker, val name: String) {
185185 fun ensureFile (vararg paths : String ) = ensureFile(paths.asIterable())
186186
187187 fun ensureFile (paths : Iterable <String >) {
188- ensureDir(paths.map { it.substringBeforeLast(" /" ) })
188+ ensureDir(paths.map { it.substringBeforeLast(" /" ) }.toSet() )
189189
190190 val command = " touch ${paths.joinToString(" " )} "
191191 when (paths.count()) {
Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ abstract class Base(protected val environment: EnvironmentExtension) : Runtime {
2020 null
2121 }
2222
23- override val hostInternalIpMissing: Boolean get() = ! (OperatingSystem .current().isWindows || OperatingSystem .current().isMacOsX)
23+ override val hostInternalIpMissing: Boolean get() {
24+ val os = OperatingSystem .current()
25+ return this is Toolbox || ! (os.isWindows || os.isMacOsX)
26+ }
2427
2528 override fun toString (): String = name.toLowerCase()
2629}
You can’t perform that action at this time.
0 commit comments