Commit 3feddf46 authored by Ximin Luo's avatar Ximin Luo

main: Fix Script so that build commands starting with ENVVAR=val work after append_command()

parent 69d78e44
......@@ -101,6 +101,8 @@ class Script(collections.namedtuple('_Script', 'build_command setup cleanup')):
def __new__(cls, build_command, setup=_shell_ast.AndList(),
build_command = _shell_ast.SimpleCommand(
"sh", "-ec", _shell_ast.Quote(build_command))
return super().__new__(cls, build_command, setup, cleanup)
def append_command(self, command):
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