Don't attempt to load local templates if HOME is not set

This commit is contained in:
Ben Hollis 2014-03-23 16:49:22 -07:00
parent fde93ffed4
commit 0a6c80d223

View file

@ -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'