Add flagNoMacro guard
This commit is contained in:
parent
c4624d7c0b
commit
f35909340b
2
task.go
2
task.go
@ -50,6 +50,7 @@ func (t *taskDef) process(taskName, srcDir, dstDir string, conf *config, flags i
|
||||
}
|
||||
}
|
||||
|
||||
if flags&flagNoMacro == 0 {
|
||||
for _, macro := range t.Macros {
|
||||
if len(macro) == 0 {
|
||||
continue
|
||||
@ -67,6 +68,7 @@ func (t *taskDef) process(taskName, srcDir, dstDir string, conf *config, flags i
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if flags&flagNoLink == 0 {
|
||||
for _, currLink := range t.Links {
|
||||
|
Loading…
Reference in New Issue
Block a user