Only try bundler if the Gemfile is there.
This commit is contained in:
parent
32b14d6402
commit
60202782ea
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue