diff --git a/main.go b/main.go index 12951a2..fc62c89 100644 --- a/main.go +++ b/main.go @@ -219,7 +219,10 @@ func main() { // Runs the command in the specified directory if flag.NArg() == 1 { rootPath := os.Args[len(os.Args)-1] - os.Chdir(rootPath) + err := os.Chdir(rootPath) + if err != nil { + log.Fatal(err) + } } start := time.Now()