mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
fix: always print before hooks output when in debug
This commit is contained in:
parent
eec13796a4
commit
d701179975
@ -25,8 +25,9 @@ func (Pipe) Run(ctx *context.Context) error {
|
||||
args := strings.Fields(step)
|
||||
log.Infof("running %s", color.CyanString(step))
|
||||
cmd := exec.Command(args[0], args[1:]...)
|
||||
if out, err := cmd.CombinedOutput(); err != nil {
|
||||
log.Debug(string(out))
|
||||
out, err := cmd.CombinedOutput()
|
||||
log.Debug(string(out))
|
||||
if err != nil {
|
||||
return fmt.Errorf("hook failed: %s\n%v", step, string(out))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user