summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/binstubs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli/binstubs.rb')
-rw-r--r--lib/bundler/cli/binstubs.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/cli/binstubs.rb b/lib/bundler/cli/binstubs.rb
index 82815062d3..f872a2dcc7 100644
--- a/lib/bundler/cli/binstubs.rb
+++ b/lib/bundler/cli/binstubs.rb
@@ -13,6 +13,7 @@ module Bundler
Bundler.definition.validate_runtime!
Bundler.settings[:bin] = options["path"] if options["path"]
Bundler.settings[:bin] = nil if options["path"] && options["path"].empty?
+ Bundler.settings[:shebang] = options["shebang"] if options["shebang"]
installer = Installer.new(Bundler.root, Bundler.definition)
if gems.empty?