Process links after commands
This commit is contained in:
parent
2a10a02784
commit
4751737c5f
12
task.go
12
task.go
@ -44,17 +44,17 @@ func (t *task) process(srcDir, dstDir string, conf *config, flags int) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if flags&flagNoLink == 0 {
|
if flags&flagNoCmd == 0 {
|
||||||
for _, currLink := range t.Links {
|
for _, currCmd := range t.Cmds {
|
||||||
if err := processLink(currLink, srcDir, dstDir, flags); err != nil {
|
if err := processCmd(currCmd, dstDir, conf, flags); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if flags&flagNoCmd == 0 {
|
if flags&flagNoLink == 0 {
|
||||||
for _, currCmd := range t.Cmds {
|
for _, currLink := range t.Links {
|
||||||
if err := processCmd(currCmd, dstDir, conf, flags); err != nil {
|
if err := processLink(currLink, srcDir, dstDir, flags); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user