fix: remove log message
Cadoles/bouncer/pipeline/head This commit looks good
Details
Cadoles/bouncer/pipeline/head This commit looks good
Details
This commit is contained in:
parent
74409f18e8
commit
5a7062d53e
|
@ -9,7 +9,6 @@ import (
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
"gitlab.com/wpetit/goweb/logger"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func Main(buildDate, projectVersion, gitRef, defaultConfigPath string, commands ...*cli.Command) {
|
func Main(buildDate, projectVersion, gitRef, defaultConfigPath string, commands ...*cli.Command) {
|
||||||
|
@ -30,8 +29,6 @@ func Main(buildDate, projectVersion, gitRef, defaultConfigPath string, commands
|
||||||
workdir := ctx.String("workdir")
|
workdir := ctx.String("workdir")
|
||||||
// Switch to new working directory if defined
|
// Switch to new working directory if defined
|
||||||
if workdir != "" {
|
if workdir != "" {
|
||||||
logger.Info(ctx.Context, "changing working directory", logger.F("workdir", workdir))
|
|
||||||
|
|
||||||
if err := os.Chdir(workdir); err != nil {
|
if err := os.Chdir(workdir); err != nil {
|
||||||
return errors.Wrap(err, "could not change working directory")
|
return errors.Wrap(err, "could not change working directory")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue