Commit bca4d4e3 authored by Marco Mariani's avatar Marco Mariani

substitute process in execution

parent 73baf7a1
...@@ -110,12 +110,15 @@ class GenericBaseRecipe(object): ...@@ -110,12 +110,15 @@ class GenericBaseRecipe(object):
return script return script
def createWrapper(self, name, command, parameters): 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 q = shlex.quote
lines = [ lines = [
'#!/bin/sh', '#!/bin/sh',
shlex.quote(command) 'exec %s' % shlex.quote(command)
] ]
for param in parameters: 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