]> Cypherpunks.ru repositories - goredo.git/blobdiff - run.go
Fix REDO_TRACE workability
[goredo.git] / run.go
diff --git a/run.go b/run.go
index 2efd2d31a80e20917f0ee89a027da0f10354ddca..a4aeb8738206b7bac7030d28dce67e07ffb74714 100644 (file)
--- a/run.go
+++ b/run.go
@@ -67,6 +67,8 @@ var (
        flagTraceAll     = flag.Bool("xx", false, fmt.Sprintf("trace (sh -x) all targets (%s=1)", EnvTrace))
        flagStderrKeep   = flag.Bool("logs", false, fmt.Sprintf("keep job's stderr (%s=1)", EnvStderrKeep))
        flagStderrSilent = flag.Bool("silent", false, fmt.Sprintf("do not print job's stderr (%s=1)", EnvStderrSilent))
+
+       TracedAll bool
 )
 
 type RunErr struct {
@@ -304,7 +306,7 @@ func runScript(tgtOrig string, errs chan error, traced bool) error {
                args = make([]string, 0, 3)
        } else {
                cmdName = "/bin/sh"
-               if traced {
+               if traced || TracedAll {
                        args = append(args, "-ex")
                } else {
                        args = append(args, "-e")