diff options
author | ale <ale@incal.net> | 2018-12-06 08:24:27 -0800 |
---|---|---|
committer | ale <ale@incal.net> | 2018-12-06 08:24:27 -0800 |
commit | 8ca8cc1f72093c0d049a2b94de7aaafeb42fabc0 (patch) | |
tree | 7473d25c0c820659435b33d339e980c2ec32d8b5 /cmd | |
parent | 59f3725ff8c81dca1f1305da34e877c0316d4152 (diff) | |
download | crawl-8ca8cc1f72093c0d049a2b94de7aaafeb42fabc0.tar.gz crawl-8ca8cc1f72093c0d049a2b94de7aaafeb42fabc0.zip |
Apply --excludes to related resources too
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/crawl/crawl.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/crawl/crawl.go b/cmd/crawl/crawl.go index d0ff268..d5e012a 100644 --- a/cmd/crawl/crawl.go +++ b/cmd/crawl/crawl.go @@ -268,7 +268,7 @@ func main() { crawl.NewRegexpIgnoreScope(excludes), ) if !*excludeRelated { - scope = crawl.OR(scope, crawl.NewIncludeRelatedScope()) + scope = crawl.AND(crawl.OR(scope, crawl.NewIncludeRelatedScope()), crawl.NewRegexpIgnoreScope(excludes)) } outf, err := os.Create(*outputFile) |