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'
|
require 'middleman-more/templates/smacss'
|
||||||
|
|
||||||
# Local templates
|
# Local templates
|
||||||
|
if ENV['HOME'] # Sometimes HOME doesn't exist, in which case there's no point to local templates
|
||||||
require 'middleman-core/templates/local'
|
require 'middleman-core/templates/local'
|
||||||
|
end
|
||||||
|
|
||||||
# Barebones template
|
# Barebones template
|
||||||
require 'middleman-core/templates/empty'
|
require 'middleman-core/templates/empty'
|
||||||
|
|
Loading…
Reference in a new issue