From 0cc05cff1f8f97c81be5d470a238d844583fd343 Mon Sep 17 00:00:00 2001 From: asoseil Date: Wed, 7 Feb 2018 14:24:47 +0100 Subject: [PATCH] fixed error with build nil --- realize/projects.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/realize/projects.go b/realize/projects.go index 3ee3ff3..ff5fb66 100644 --- a/realize/projects.go +++ b/realize/projects.go @@ -547,7 +547,9 @@ func (p *Project) run(path string, stream chan Response, stop <-chan bool) (err defer func() { // https://github.com/golang/go/issues/5615 // https://github.com/golang/go/issues/6720 - build.Process.Signal(os.Interrupt) + if build != nil { + build.Process.Signal(os.Interrupt) + } }() // custom error pattern