Fix possible multiple command execution in rare case.
This commit is contained in:
@@ -122,11 +122,14 @@ func (c *MyConfig) ParseStdin() {
|
||||
|
||||
c.Channels.RunChan <- prg
|
||||
|
||||
break
|
||||
case app.Instance != "" && e.Instance == app.Instance:
|
||||
prg := append([]string{}, app.Cmd)
|
||||
prg = append(prg, app.Args...)
|
||||
|
||||
c.Channels.RunChan <- prg
|
||||
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user