More renaming of conditionls
This commit is contained in:
parent
eff8fa0abd
commit
4614524ccb
8
task.go
8
task.go
@ -32,8 +32,8 @@ type task struct {
|
|||||||
Links [][]string
|
Links [][]string
|
||||||
Cmds [][]string
|
Cmds [][]string
|
||||||
Envs [][]string
|
Envs [][]string
|
||||||
WTrue [][]string
|
Accepts [][]string
|
||||||
WFalse [][]string
|
Rejects [][]string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *task) deps(conf *config) []string {
|
func (t *task) deps(conf *config) []string {
|
||||||
@ -64,13 +64,13 @@ func (t *task) process(conf *config) error {
|
|||||||
if conf.flags&flagNoCmds == 0 {
|
if conf.flags&flagNoCmds == 0 {
|
||||||
CmdLoop:
|
CmdLoop:
|
||||||
for {
|
for {
|
||||||
for _, currCnd := range t.WTrue {
|
for _, currCnd := range t.Accepts {
|
||||||
if err := processCmd(currCnd, false, conf); err != nil {
|
if err := processCmd(currCnd, false, conf); err != nil {
|
||||||
break CmdLoop
|
break CmdLoop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, currCnd := range t.WFalse {
|
for _, currCnd := range t.Rejects {
|
||||||
if err := processCmd(currCnd, false, conf); err == nil {
|
if err := processCmd(currCnd, false, conf); err == nil {
|
||||||
break CmdLoop
|
break CmdLoop
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user