From f10c0e9c97067e5d8a3e35083a8e56546e1a04e4 Mon Sep 17 00:00:00 2001 From: asoseil Date: Mon, 16 Oct 2017 20:58:17 +0200 Subject: [PATCH] run workflow fixed --- watcher.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/watcher.go b/watcher.go index a1b9483..094723c 100644 --- a/watcher.go +++ b/watcher.go @@ -407,13 +407,17 @@ func (p *Project) routines(stop <-chan bool, watcher FileWatcher, path string) { // Prevent fake events on polling startup p.init = true } + // prevent errors using realize without config with only run flag + if !p.Cmds.Install.Status && !p.Cmds.Build.Status { + p.Cmds.Install.Status = true + } if !done { install = p.compile(stop, p.Cmds.Install) } if !done { build = p.compile(stop, p.Cmds.Build) } - if !done && (install == nil || build == nil) { + if !done && (install == nil && build == nil) { if p.Cmds.Run { start := time.Now() runner := make(chan bool, 1)