Process links after commands

This commit is contained in:
Alex Yatskov 2015-07-21 12:16:18 +09:00
parent 2a10a02784
commit 4751737c5f

12
task.go
View File

@ -44,17 +44,17 @@ func (t *task) process(srcDir, dstDir string, conf *config, flags int) error {
}
}
if flags&flagNoLink == 0 {
for _, currLink := range t.Links {
if err := processLink(currLink, srcDir, dstDir, flags); err != nil {
if flags&flagNoCmd == 0 {
for _, currCmd := range t.Cmds {
if err := processCmd(currCmd, dstDir, conf, flags); err != nil {
return err
}
}
}
if flags&flagNoCmd == 0 {
for _, currCmd := range t.Cmds {
if err := processCmd(currCmd, dstDir, conf, flags); err != nil {
if flags&flagNoLink == 0 {
for _, currLink := range t.Links {
if err := processLink(currLink, srcDir, dstDir, flags); err != nil {
return err
}
}