X-Git-Url: http://www.git.cypherpunks.ru/?p=goredo.git;a=blobdiff_plain;f=run.go;h=a4aeb8738206b7bac7030d28dce67e07ffb74714;hp=2efd2d31a80e20917f0ee89a027da0f10354ddca;hb=468a150138cdc10c3ec5ee00a77db06429b47456;hpb=663a0b42bef23f4ead253f55b3e2db158eac3585 diff --git a/run.go b/run.go index 2efd2d3..a4aeb87 100644 --- 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")