summaryrefslogtreecommitdiff
path: root/internal/io/run
diff options
context:
space:
mode:
authorPaul Bütow <pbuetow@mimecast.com>2020-02-12 22:46:45 +0000
committerPaul Bütow <pbuetow@mimecast.com>2020-02-12 22:46:45 +0000
commit221010919b210034ba75d42951caf3965f66aa9d (patch)
tree40fa9530ff3c2b1137ed9a490e23a51dff907423 /internal/io/run
parenta1a0990f5e261f395a2d699cd7602ca4a6a5b6c4 (diff)
exec will always err if status is > 0
Diffstat (limited to 'internal/io/run')
-rw-r--r--internal/io/run/run.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/io/run/run.go b/internal/io/run/run.go
index c0c6868..3cf7935 100644
--- a/internal/io/run/run.go
+++ b/internal/io/run/run.go
@@ -32,7 +32,7 @@ func (r Run) Start(ctx context.Context, lines chan<- line.Line) (pid int, ec int
done := make(chan struct{})
defer close(done)
- ec = -1
+ ec = 255
pid = -1
if len(r.args) > 0 {