summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index c36057af59..26eab1cd01 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -227,9 +227,11 @@ def install_recursive(srcdir, dest, options = {})
Dir.foreach(file) do |f|
src = File.join(file, f)
d = File.join(dest, dir = src[subpath])
- stat = File.stat(src) rescue next
+ stat = File.lstat(src) rescue next
if stat.directory?
files << [src, d, true] if /\A\./ !~ f and !prune[dir]
+ elsif stat.symlink?
+ # skip
else
files << [src, d, false] if File.fnmatch?(glob, f) and !skip[f]
end