diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-02-03 19:56:11 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-02-03 19:56:11 +0900 |
commit | 92f408719afeefaad3b221d02f784f759807f568 (patch) | |
tree | cbd7e667a616d9930168b6b0954d6cef29395b47 /buildstream/buildelement.py | |
parent | 8797db85f8bf4782c9e6ab550dda09004db15727 (diff) | |
download | buildstream-92f408719afeefaad3b221d02f784f759807f568.tar.gz |
buildelement.py: Use 'sh' instead of '/bin/sh' for running shell scripts
Matches ybd more closely, but probably doesnt make much difference.
Diffstat (limited to 'buildstream/buildelement.py')
-rw-r--r-- | buildstream/buildelement.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/buildelement.py b/buildstream/buildelement.py index b5f5e592d..56bdac01c 100644 --- a/buildstream/buildelement.py +++ b/buildstream/buildelement.py @@ -88,7 +88,7 @@ class BuildElement(Element): for cmd in commands: with self.timed_activity("Running %s" % command_name): self.status("Running %s" % command_name, detail=cmd) - exitcode, _, _ = sandbox.run(['/bin/sh', '-c', cmd]) + exitcode, _, _ = sandbox.run(['sh', '-c', cmd]) if exitcode != 0: raise ElementError("Command '{}' failed with exitcode {}".format(cmd, exitcode)) |