Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Closes #3558 #3559

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/bundler/source/path/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(spec, options = {})
end

def generate_bin
return if spec.executables.nil? || spec.executables.empty?
return if @spec.executables.nil? || @spec.executables.empty?

if Bundler.requires_sudo?
FileUtils.mkdir_p(@tmp_bin_dir) unless File.exist?(@tmp_bin_dir)
Expand All @@ -26,7 +26,7 @@ def generate_bin

if Bundler.requires_sudo?
Bundler.mkdir_p @gem_bin_dir
spec.executables.each do |exe|
@spec.executables.each do |exe|
Bundler.sudo "cp -R #{@tmp_bin_dir}/#{exe} #{@gem_bin_dir}"
end
end
Expand Down