diff options
Diffstat (limited to 'lib/bundler/templates/Executable')
| -rw-r--r--[-rwxr-xr-x] | lib/bundler/templates/Executable | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/bundler/templates/Executable b/lib/bundler/templates/Executable index 9289debc26..b085c24da6 100755..100644 --- a/lib/bundler/templates/Executable +++ b/lib/bundler/templates/Executable @@ -8,12 +8,7 @@ # 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) +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("<%= relative_gemfile_path %>", __dir__) require "rubygems" require "bundler/setup" |
