diff --git a/patchwork/files.py b/patchwork/files.py index 1e68512..90423e6 100644 --- a/patchwork/files.py +++ b/patchwork/files.py @@ -127,7 +127,8 @@ def append(c, runner, filename, text, partial=False, escape=True): ): continue line = line.replace("'", r"'\\''") if escape else line - runner("echo '{}' >> {}".format(line, filename)) + # runner("echo '{}' >> {}".format(line, filename)) + runner('''bash -c "echo '{}' >> {}" '''.format(line, filename)) def _escape_for_regex(text):