mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 01:38:24 -05:00
Only try bundler if the Gemfile is there.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user