Fix #filtered_entries so it returns a new Array if the directory doesn't exist
This commit is contained in:
parent
696aea211a
commit
5a6f1d42a9
|
@ -24,7 +24,7 @@ def jekyll_run_output
|
||||||
end
|
end
|
||||||
|
|
||||||
def run_jekyll(args, output_file)
|
def run_jekyll(args, output_file)
|
||||||
command = "#{JEKYLL_PATH} #{args} > #{jekyll_output_file} 2>&1"
|
command = "#{JEKYLL_PATH} #{args} --trace > #{jekyll_output_file} 2>&1"
|
||||||
system command
|
system command
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,7 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns a list of filtered entry paths.
|
# Returns a list of filtered entry paths.
|
||||||
def filtered_entries
|
def filtered_entries
|
||||||
|
return Array.new unless exists?
|
||||||
Dir.chdir(directory) do
|
Dir.chdir(directory) do
|
||||||
entry_filter.filter(entries)
|
entry_filter.filter(entries)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue