chore: remove string builder in IPC wrapper
This commit is contained in:
parent
7da3af7cd0
commit
cb4ecb9ff6
1 changed files with 2 additions and 3 deletions
|
@ -71,11 +71,10 @@ object IPCUtil {
|
||||||
}
|
}
|
||||||
//FIFO created, hack cli
|
//FIFO created, hack cli
|
||||||
val exePath = cli.exePath
|
val exePath = cli.exePath
|
||||||
val argBuilder = StringBuilder()
|
val args = "exec {var}>${fifoFile.pathString}; ZIG_PROGRESS=\$var $exePath ${cli.parametersList.parametersString}; exec {var}>&-"
|
||||||
argBuilder.append("exec {var}>${fifoFile.pathString}; ZIG_PROGRESS=\$var $exePath ${cli.parametersList.parametersString}; exec {var}>&-")
|
|
||||||
cli.withExePath("bash")
|
cli.withExePath("bash")
|
||||||
cli.parametersList.clearAll()
|
cli.parametersList.clearAll()
|
||||||
cli.addParameters("-c", argBuilder.toString())
|
cli.addParameters("-c", args)
|
||||||
return IPC(cli, fifoFile, fifo)
|
return IPC(cli, fifoFile, fifo)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue