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