diff --git a/modules/configuration/server/src/main/resources/UGE_Groovy.template b/modules/configuration/server/src/main/resources/UGE_Groovy.template index ce378f984e..2870401b9f 100644 --- a/modules/configuration/server/src/main/resources/UGE_Groovy.template +++ b/modules/configuration/server/src/main/resources/UGE_Groovy.template @@ -20,8 +20,10 @@ if (moduleCommands != null) for(mc in moduleCommands) out.print mc +'\n' if (workingDirectory != null && workingDirectory != "") out.print 'cd ' + workingDirectory +'\n' if (preJobCommands != null) for(pjc in preJobCommands) out.print pjc +'\n' - if (jobSubmitterCommand != null && jobSubmitterCommand != "") out.print jobSubmitterCommand + ' ' - if (processPerNode != null && processPerNode != "") out.print processPerNode + ' ' + if (jobSubmitterCommand != null && jobSubmitterCommand != "") { + out.print jobSubmitterCommand + ' ' + if (processPerNode != null && processPerNode != "") out.print processPerNode + ' ' + } if (executablePath != null && executablePath != "") out.print executablePath + ' ' if (inputs != null) for(input in inputs) out.print input + ' ' out.print '\n'