Don't attempt to load local templates if HOME is not set
This commit is contained in:
parent
fde93ffed4
commit
0a6c80d223
|
@ -96,7 +96,9 @@ require 'middleman-core/templates/mobile'
|
|||
require 'middleman-more/templates/smacss'
|
||||
|
||||
# Local templates
|
||||
require 'middleman-core/templates/local'
|
||||
if ENV['HOME'] # Sometimes HOME doesn't exist, in which case there's no point to local templates
|
||||
require 'middleman-core/templates/local'
|
||||
end
|
||||
|
||||
# Barebones template
|
||||
require 'middleman-core/templates/empty'
|
||||
|
|
Loading…
Reference in a new issue