diff options
Diffstat (limited to 'lib/bundler/templates/Executable')
-rwxr-xr-x | lib/bundler/templates/Executable | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/templates/Executable b/lib/bundler/templates/Executable index fe22de0a6d..9289debc26 100755 --- a/lib/bundler/templates/Executable +++ b/lib/bundler/templates/Executable @@ -1,5 +1,6 @@ #!/usr/bin/env <%= Bundler.settings[:shebang] || RbConfig::CONFIG["ruby_install_name"] %> # frozen_string_literal: true + # # This file was generated by Bundler. # @@ -7,6 +8,9 @@ # this file is here to facilitate running it. # +bundle_binstub = File.expand_path("../bundle", __FILE__) +load(bundle_binstub) if File.file?(bundle_binstub) + require "pathname" ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../<%= relative_gemfile_path %>", Pathname.new(__FILE__).realpath) |