diff --git a/cmd/compiledb/main.go b/cmd/compiledb/main.go index cc34a82..be3e447 100644 --- a/cmd/compiledb/main.go +++ b/cmd/compiledb/main.go @@ -9,7 +9,7 @@ import ( "github.com/urfave/cli/v2" ) -var Version string = "v1.3.2" +var Version string = "v1.3.3" func init() { log.SetOutput(os.Stdout) diff --git a/internal/init.go b/internal/init.go index f2b7a0d..d5871f1 100644 --- a/internal/init.go +++ b/internal/init.go @@ -60,6 +60,13 @@ func WriteJSON(filename string, cmdCnt int, data *[]Command) { func MakeWrap(args []string) { var wg sync.WaitGroup + if ParseConfig.BuildDir != "" { + err := os.Chdir(ParseConfig.BuildDir) + if err != nil { + log.Error(err) + } + } + wg.Add(1) go func() { // append log