summaryrefslogtreecommitdiff
path: root/lib/bundler/templates/Executable
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/templates/Executable')
-rw-r--r--[-rwxr-xr-x]lib/bundler/templates/Executable5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bundler/templates/Executable b/lib/bundler/templates/Executable
index fe22de0a6d..b085c24da6 100755..100644
--- 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,9 +8,7 @@
# this file is here to facilitate running it.
#
-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"