Commit 07304292 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added remove of temp file

parent 17cb67b2
......@@ -249,6 +249,7 @@ object BiopetCommandLineFunction extends Logging {
try {
val buffer = new StringBuffer()
val tempFile = File.createTempFile("which.", ".sh")
tempFile.deleteOnExit()
val writer = new PrintWriter(tempFile)
pre_commands.foreach(cmd => writer.println(cmd + " > /dev/null 2> /dev/null"))
writer.println(s"which $executable")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment