shithub: hugo

Download patch

ref: da4c4a7789d403af3f4f4fdd5dfd3327535e4050
parent: b4827fbb144573263371377e5b39be1fe1fa1466
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Fri Jul 26 06:45:07 EDT 2019

cache/filecache: Skip resource cache init if the fs is missing

Fixes #6113

--- a/cache/filecache/filecache.go
+++ b/cache/filecache/filecache.go
@@ -330,6 +330,9 @@
 
 		if v.isResourceDir {
 			cfs = p.BaseFs.ResourcesCache
+			if cfs == nil {
+				continue
+			}
 		} else {
 			cfs = fs
 		}