aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/commandeer.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/commandeer.go')
-rw-r--r--commands/commandeer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/commandeer.go b/commands/commandeer.go
index 304ef7a7c..bf42501e0 100644
--- a/commands/commandeer.go
+++ b/commands/commandeer.go
@@ -422,7 +422,7 @@ func (c *commandeer) loadConfig() error {
}
c.hugoSites = h
// TODO(bep) improve.
- if c.buildLock == nil {
+ if c.buildLock == nil && h != nil {
c.buildLock = h.LockBuild
}
close(c.created)