diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-07-26 10:45:07 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-07-26 10:45:07 +0200 |
commit | da4c4a7789d403af3f4f4fdd5dfd3327535e4050 (patch) | |
tree | 5e1e04a598c10cdac8a2314270626b3d71b6ac18 /cache | |
parent | b4827fbb144573263371377e5b39be1fe1fa1466 (diff) | |
download | hugo-da4c4a7789d403af3f4f4fdd5dfd3327535e4050.tar.gz hugo-da4c4a7789d403af3f4f4fdd5dfd3327535e4050.zip |
cache/filecache: Skip resource cache init if the fs is missing
Fixes #6113
Diffstat (limited to 'cache')
-rw-r--r-- | cache/filecache/filecache.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cache/filecache/filecache.go b/cache/filecache/filecache.go index bf004c8f7..216c280c2 100644 --- a/cache/filecache/filecache.go +++ b/cache/filecache/filecache.go @@ -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 } |