From c95eb0c393dda7f7d9737941e481963eca759865 Mon Sep 17 00:00:00 2001 From: Kruemmelspalter Date: Mon, 26 Dec 2022 16:14:01 +0100 Subject: [PATCH] remove debug print --- .../kruemmelspalter/file_spider/backend/renderer/Renderer.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/app/src/main/kotlin/me/kruemmelspalter/file_spider/backend/renderer/Renderer.kt b/backend/app/src/main/kotlin/me/kruemmelspalter/file_spider/backend/renderer/Renderer.kt index 877768a..5893d42 100644 --- a/backend/app/src/main/kotlin/me/kruemmelspalter/file_spider/backend/renderer/Renderer.kt +++ b/backend/app/src/main/kotlin/me/kruemmelspalter/file_spider/backend/renderer/Renderer.kt @@ -141,10 +141,8 @@ class Renderer { filenameProvider: (RenderMeta) -> String = { it.document.id.toString() } ): Renderer { return command(1) { meta -> - val x = listOf("sed", "-i", "-E") + replacements.map { listOf("-e", "s/${it.key}/${it.value}/g") }.flatten() + + listOf("sed", "-i", "-E") + replacements.map { listOf("-e", "s/${it.key}/${it.value}/g") }.flatten() + listOf(Paths.get(meta.workingDirectory.toString(), filenameProvider(meta)).toString()) - println(x) - x } }