Guilherme Delgado
09/08/2023, 10:21 AM#!/bin/bash
echo "> Yay!"
task:
tasks.register<Exec>("runBashScript") {
commandLine("./script.sh")
}
But I’m always getting:
Execution failed for task ':runBashScript'.
> A problem occurred starting process 'command './script.sh''
I’m lost 😕CLOVIS
09/08/2023, 10:23 AM--info
to get an idea for what is actually being executed, in the past I've had similar issues when the working directory was not what I was expectingVampire
09/08/2023, 10:40 AMbash
or similar with the script as argument.
Besides that the question is not kotlin but kotlin colored of course, yeah 🙂Guilherme Delgado
09/08/2023, 10:42 AMyschimke
09/08/2023, 4:45 PMVampire
09/08/2023, 9:15 PMScript files have to be recognized and the appropriate interpreter run to handle them; for example /bin/sh interprets shell scripts.
🤷♂️
yschimke
09/09/2023, 6:11 AMVampire
09/09/2023, 10:18 AMbash -c
it also works on windows and directly probably won't.yschimke
09/09/2023, 10:54 AM