Commit adb28111 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix modules in shell functions

parent 3d7bb48c
......@@ -196,7 +196,7 @@ class ShellFunction(ScriptFunction):
source = '#!%s\n' % shell_path + \
("\n".join(("module load " + module) for module in modules) if len(modules) > 0 else "") + "\n" + \
source + \
"\n" + ("\n".join(("module unload " + module) for module in modules) + if len(modules) > 0 else "")
"\n" + ("\n".join(("module unload " + module) for module in modules) if len(modules) > 0 else "")
ScriptFunction.__init__(self, source, executable, cmd_format)
......
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