summaryrefslogtreecommitdiff
path: root/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'run.go')
-rw-r--r--run.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/run.go b/run.go
index 4e03ac2..15e4633 100644
--- a/run.go
+++ b/run.go
@@ -68,10 +68,17 @@ func RunPath(path string, args []string) bool {
cmd.Dir = path
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
- println("path =", path, "cmd =", strings.Join(args, " "))
+ log.Info("path =", path, "cmd =", strings.Join(args, " "))
if err := cmd.Run(); err != nil {
// Handle error if the command execution fails
- println("Error executing command:", err.Error())
+ log.Info("RunPath() failed")
+ // log.Info("cmd.Enviorn =", cmd.Environ())
+ out, outerr := cmd.Output()
+ log.Info("cmd.output =", out)
+ log.Info("cmd.output err=", outerr)
+ log.Info("path =", path)
+ log.Info("args =", args)
+ log.Info("err =", err.Error())
return false
}
return true