Commit bca4d4e3 authored by Marco Mariani's avatar Marco Mariani

substitute process in execution

parent 73baf7a1
......@@ -110,12 +110,15 @@ class GenericBaseRecipe(object):
return script
def createWrapper(self, name, command, parameters):
"""Creates a very simple (one command) shell script. Takes care of quoting."""
"""
Creates a very simple (one command) shell script for process replacement.
Takes care of quoting.
"""
q = shlex.quote
lines = [
'#!/bin/sh',
shlex.quote(command)
'exec %s' % shlex.quote(command)
]
for param in parameters:
......
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