Commit 06853b78 authored by Juste Raimbault's avatar Juste Raimbault
Browse files

[Plugin]juliatask:fix

parent efa240b9
......@@ -33,7 +33,7 @@ object JuliaTask {
implicit def isMapped = MappedInputOutputBuilder(JuliaTask.mapped)
def installCommands(install: Seq[String], libraries: Seq[String]): Vector[String] = {
(install ++ Seq("julia -e 'using Pkg; Pkg.add.([ " + libraries.map { l "\""+l+"\"" }.mkString(",")+"])'" )).toVector
(install ++ Seq("""sh -c "julia -e 'using Pkg; Pkg.add.([ """ + libraries.map { l "\\\""+l+"\\\"" }.mkString(",")+"""])'"""" )).toVector
}
def apply(
......@@ -141,7 +141,7 @@ object JuliaTask {
ContainerTask(
containerSystem = containerSystem,
image = image,
command = s"julia $scriptName" + argumentsValue,
command = s"sh -c \"julia $scriptName" + argumentsValue+"\"",
workDirectory = None,
relativePathRoot = None,
errorOnReturnValue = errorOnReturnValue,
......
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