File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -uexo pipefail
4+
15echo ' Echo from app post compile'
26echo
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euxo pipefail
4+
15echo ' Echo from app pre compile'
26echo
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ func (h AppHook) BeforeCompile(compiler *libbuildpack.Stager) error {
2525 if err := os .Chmod (path , 0755 ); err != nil {
2626 return err
2727 }
28- cmd := exec .Command ("/bin/sh" , path )
28+ cmd := exec .Command (path )
2929 cmd .Dir = compiler .BuildDir ()
3030 output , err := cmd .Output ()
3131 if err != nil {
@@ -46,7 +46,7 @@ func (h AppHook) AfterCompile(compiler *libbuildpack.Stager) error {
4646 if err := os .Chmod (path , 0755 ); err != nil {
4747 return err
4848 }
49- cmd := exec .Command ("/bin/sh" , path )
49+ cmd := exec .Command (path )
5050 cmd .Dir = compiler .BuildDir ()
5151 output , err := cmd .Output ()
5252 if err != nil {
You can’t perform that action at this time.
0 commit comments