ProcessBuilder command with single quote fails
I have the following code:
val process = processBuilder
.command(listOf(
"curl",
"--location",
"--request",
"GET",
"$url",
"--header",
"'Authorization: token xyz'"
))
Running this will result in the command failing, It's actually not picking up the header properly. I know the curl is good, because printing the command and executing it directly in terminal...