diff --git a/pwd/session.go b/pwd/session.go index c820253..5e3ec20 100644 --- a/pwd/session.go +++ b/pwd/session.go @@ -291,10 +291,10 @@ func (p *pwd) SessionSetup(session *types.Session, sconf SessionSetupConf) error } for _, cmd := range conf.Run { - var errch chan error + errch := make(chan error) go func() { exitCode, err := p.InstanceExec(i, cmd) - fmt.Printf("Finished execuing command [%s] on instance %s with code [%d] and err [%v]", cmd, i.Name, exitCode, err) + fmt.Printf("Finished execuing command [%s] on instance %s with code [%d] and err [%v]\n", cmd, i.Name, exitCode, err) if err != nil { errch <- err