diff --git a/src/main/kotlin/com/cognifide/gradle/environment/docker/Container.kt b/src/main/kotlin/com/cognifide/gradle/environment/docker/Container.kt index 574c715..d6dd626 100644 --- a/src/main/kotlin/com/cognifide/gradle/environment/docker/Container.kt +++ b/src/main/kotlin/com/cognifide/gradle/environment/docker/Container.kt @@ -189,6 +189,7 @@ class Container(val docker: Docker, val name: String) { val command = "touch ${paths.joinToString(" ")}" when (paths.count()) { + 0 -> logger.info("No files to ensure on container '$name'") 1 -> execShell("Ensuring file '${paths.first()}'", command) else -> execShell("Ensuring files (${paths.count()})", command) } @@ -199,6 +200,7 @@ class Container(val docker: Docker, val name: String) { fun ensureDir(paths: Iterable) { val command = "mkdir -p ${paths.joinToString(" ")}" when (paths.count()) { + 0 -> logger.info("No directories to ensure on container '$name'") 1 -> execShell("Ensuring directory '${paths.first()}'", command) else -> execShell("Ensuring directories (${paths.count()})", command) }