diff options
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-x | tool/rbinstall.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 5423920da7..333369293a 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -722,9 +722,10 @@ module RbInstall return if @src_dir == destination_dir File.chmod(0700, destination_dir) mode = pattern == File.join(spec.bindir, '*') ? prog_mode : data_mode + destdir = without_destdir(destination_dir) spec.files.each do |f| src = File.join(@src_dir, f) - dest = File.join(without_destdir(destination_dir), f) + dest = File.join(destdir, f) makedirs(dest[/.*(?=\/)/m]) install src, dest, :mode => mode end |