mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 21:21:14 +00:00
cache/filecache: Skip resource cache init if the fs is missing
Fixes #6113
This commit is contained in:
parent
b4827fbb14
commit
da4c4a7789
1 changed files with 3 additions and 0 deletions
3
cache/filecache/filecache.go
vendored
3
cache/filecache/filecache.go
vendored
|
@ -330,6 +330,9 @@ func NewCaches(p *helpers.PathSpec) (Caches, error) {
|
|||
|
||||
if v.isResourceDir {
|
||||
cfs = p.BaseFs.ResourcesCache
|
||||
if cfs == nil {
|
||||
continue
|
||||
}
|
||||
} else {
|
||||
cfs = fs
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue