fixup! Fix remote executable path

This commit is contained in:
Alexander Shabalin
2021-11-22 11:36:42 +03:00
committed by Space
parent 7667200ad8
commit 48bb9ae069
@@ -72,7 +72,8 @@ open class RunKotlinNativeTask @Inject constructor(private val linkTask: Task,
}
remoteHost != null -> {
executable = "ssh"
args (remoteHost, "$remoteHostFolder/${this@RunKotlinNativeTask.executable}")
val remoteExecutable = this@RunKotlinNativeTask.executable.split("/").last()
args (remoteHost, "$remoteHostFolder/$remoteExecutable")
}
else -> executable = this@RunKotlinNativeTask.executable
}
@@ -125,7 +126,8 @@ open class RunKotlinNativeTask @Inject constructor(private val linkTask: Task,
project.exec {
if (remoteHost != null) {
executable = "ssh"
args (remoteHost, "$remoteHostFolder/${this@RunKotlinNativeTask.executable}")
val remoteExecutable = this@RunKotlinNativeTask.executable.split("/").last()
args (remoteHost, "$remoteHostFolder/$remoteExecutable")
} else {
executable = this@RunKotlinNativeTask.executable
}