From 4aaf028ac38ae36007069a02f12ae407153ab40d Mon Sep 17 00:00:00 2001 From: Jeff Storey Date: Thu, 7 Apr 2016 19:30:59 -0400 Subject: [PATCH] not using dir as base dir if it's empty --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index 431367f..c1b5689 100644 --- a/main.go +++ b/main.go @@ -66,6 +66,12 @@ func main() { for _, c := range commands { c.Env = os.Environ() c.Dir = workspace.Path + if c.Dir == "" { + wd, err := os.Getwd() + if err == nil { + c.Dir = wd + } + } if vargs.RootDir != "" { c.Dir = c.Dir + "/" + vargs.RootDir }