Skip to content
Snippets Groups Projects
Commit 7a63ece8 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fix end lines on output buffers

parent 313e4e59
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab ...@@ -88,7 +88,7 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab
def outputLog = "Version command: \n" + versionCommand + def outputLog = "Version command: \n" + versionCommand +
"\n output log: \n stdout: \n" + stdout.toString + "\n output log: \n stdout: \n" + stdout.toString +
"\n stderr: \n" + stderr.toString "\n stderr: \n" + stderr.toString
val process = Process(versionCommand).run(ProcessLogger(stdout append _, stderr append _)) val process = Process(versionCommand).run(ProcessLogger(stdout append _+"\n", stderr append _+"\n"))
if (!versionExitcode.contains(process.exitValue)) { if (!versionExitcode.contains(process.exitValue)) {
logger.warn("getVersion give exit code " + process.exitValue + ", version not found \n" + outputLog) logger.warn("getVersion give exit code " + process.exitValue + ", version not found \n" + outputLog)
return "N/A" return "N/A"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment