Skip to content

Commit

Permalink
Add support for hwc buildback
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-dt committed Sep 5, 2024
1 parent 3087dab commit ed2a0b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ func (h *Hook) AfterCompile(stager *libbuildpack.Stager) error {

h.Log.BeginStep("Starting Dynatrace OneAgent installer")

if os.Getenv("BP_DEBUG") != "" {
err = h.Command.Execute("", os.Stdout, os.Stderr, installerFilePath, stager.BuildDir())
} else {
err = h.Command.Execute("", ioutil.Discard, ioutil.Discard, installerFilePath, stager.BuildDir())
}
//if os.Getenv("BP_DEBUG") != "" {
err = h.Command.Execute("", os.Stdout, os.Stderr, installerFilePath, stager.BuildDir())
//} else {
// err = h.Command.Execute("", ioutil.Discard, ioutil.Discard, installerFilePath, stager.BuildDir())
//}
if err != nil {
return err
}
Expand Down

0 comments on commit ed2a0b6

Please sign in to comment.