Only try bundler if the Gemfile is there.

This commit is contained in:
Parker Moore 2014-11-16 21:21:50 -08:00
parent 32b14d6402
commit 60202782ea
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ module Jekyll
end
def self.require_from_bundler
if ENV["JEKYLL_NO_BUNDLER_REQUIRE"]
if ENV["JEKYLL_NO_BUNDLER_REQUIRE"] || !File.file?("Gemfile")
false
else
require "bundler"