From e4b0ce3b63c7c2372d0ba7adbc852e69ccda5a34 Mon Sep 17 00:00:00 2001 From: David Zuelke Date: Mon, 25 Mar 2019 15:54:17 -0700 Subject: [PATCH] execute build formulae through shell this prevents the need for chmod +x on formulae fixes #35 --- bob/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bob/models.py b/bob/models.py index 2ce5d22..7f5888a 100644 --- a/bob/models.py +++ b/bob/models.py @@ -135,8 +135,7 @@ class Formula(object): print('Building formula {} in {}:\n'.format(self.path, cwd_path)) # Execute the formula script. - cmd = [self.full_path, self.build_path] - p = process(cmd, cwd=cwd_path) + p = process(["/usr/bin/env", "bash", "--", self.full_path, self.build_path], cwd=cwd_path) pipe(p.stdout, sys.stdout, indent=True) p.wait()