run workflow fixed

This commit is contained in:
asoseil 2017-10-16 20:58:17 +02:00
parent 23629c6761
commit f10c0e9c97

View File

@ -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)