You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:30:25 UTC
[buildstream] 17/21: WIP: win32: use cmd.exe instead of sh
This is an automated email from the ASF dual-hosted git repository.
not-in-ldap pushed a commit to branch aevri/win32
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 482d0256d9e34ae1d3faa88b98f6521ea214ea06
Author: Angelos Evripiotis <je...@bloomberg.net>
AuthorDate: Wed Apr 17 16:32:50 2019 +0100
WIP: win32: use cmd.exe instead of sh
---
src/buildstream/buildelement.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/buildstream/buildelement.py b/src/buildstream/buildelement.py
index 158f5fc..4bb6793 100644
--- a/src/buildstream/buildelement.py
+++ b/src/buildstream/buildelement.py
@@ -294,6 +294,6 @@ class BuildElement(Element):
# Note the -e switch to 'sh' means to exit with an error
# if any untested command fails.
#
- sandbox.run(['sh', '-c', '-e', cmd + '\n'],
+ sandbox.run(['cmd.exe', '/c', cmd],
SandboxFlags.ROOT_READ_ONLY,
label=cmd)