From d854c291bd706fb6b8fa41be471bf3b01ced120d Mon Sep 17 00:00:00 2001 From: Nariman Abdullin Date: Fri, 27 Oct 2023 16:13:04 +0300 Subject: [PATCH] fixed run for linux --- .../com/saveourtool/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diktat-ruleset/src/test/kotlin/com/saveourtool/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt b/diktat-ruleset/src/test/kotlin/com/saveourtool/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt index 0a510372a4..2ebc6315c1 100644 --- a/diktat-ruleset/src/test/kotlin/com/saveourtool/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt +++ b/diktat-ruleset/src/test/kotlin/com/saveourtool/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt @@ -121,7 +121,7 @@ class DiktatSaveSmokeTest : DiktatSmokeTestBase() { return when { System.getProperty("os.name").isWindows() -> arrayOf(savePath, *saveArgs) - else -> arrayOf("sh", "-c", "chmod 777 $savePath ; ./$savePath ${saveArgs.joinToString(" ")}") + else -> arrayOf("sh", "-c", "chmod 777 $savePath ; $savePath ${saveArgs.joinToString(" ")}") }.let { args -> ProcessBuilder(*args) }