Fix deprecation notice

Asterisks needs to be quoted on command line.
This commit is contained in:
Bjørn Erik Pedersen 2021-12-11 11:54:28 +01:00
parent 3f0d49e502
commit 159120cddd
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -110,7 +110,7 @@ func LoadConfig(d ConfigSourceDescriptor, doWithConfig ...func(cfg config.Provid
// Config deprecations.
// We made this a Glob pattern in Hugo 0.75, we don't need both.
if l.cfg.GetBool("ignoreVendor") {
helpers.Deprecated("--ignoreVendor", "--ignoreVendorPaths **", true)
helpers.Deprecated("--ignoreVendor", "Use --ignoreVendorPaths \"**\"", true)
l.cfg.Set("ignoreVendorPaths", "**")
}