Skip to content

Commit 8e12882

Browse files
committed
Build: allow multi-line commands on build.commands
This is another attempt to fix this issue. It follows the suggestion posted by @bensze01 in #10103. It looks simple and I think it makes sense to give it a try since it doesn't seem to be harmful. I tested it locally with the branch https://github.com/readthedocs/test-builds/tree/build-commands-multiline and it worked fine. Note that without this PR the branch linked fails. Related #10133 Related #10119 Related #10206 External PRs that should be solved by this one: * pypi/warehouse#12953 * pypi/warehouse#12953 Closes #10103 Closes #10208
1 parent 37f9806 commit 8e12882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/doc_builder/environments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def get_wrapped_command(self):
376376
for part in self.command
377377
)
378378
)
379-
return "/bin/sh -c '{prefix}{cmd}'".format(
379+
return "/bin/sh -c '{prefix}\n{cmd}'".format(
380380
prefix=prefix,
381381
cmd=command,
382382
)

0 commit comments

Comments
 (0)