diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-01-18 09:08:52 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-01-18 09:08:52 +0000 |
commit | 41d0ebf4660c74a92bfd9484bd3659d5367d2d76 (patch) | |
tree | f046d437bf3c46562223d3639ff5401297e3cd62 /lib/ftools.rb | |
parent | 9f72c385f295637f8c7b3ed7a159cb7cfa9752ef (diff) |
1.2.2 PR1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/ftools.rb')
-rw-r--r-- | lib/ftools.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ftools.rb b/lib/ftools.rb index ff487dc808..89040bd375 100644 --- a/lib/ftools.rb +++ b/lib/ftools.rb @@ -63,7 +63,7 @@ class << File to = catname(from, to) $stderr.print from, " -> ", to, "\n" if verbose - if PLATFORM =~ /djgpp|cygwin32|mswin32/ and FileTest.file? to + if PLATFORM =~ /djgpp|cygwin|mswin32/ and FileTest.file? to unlink to end begin @@ -154,6 +154,7 @@ class << File def install(from, to, mode = nil, verbose = false) to = catname(from, to) unless FileTest.exist? to and cmp from, to + unlink to if FileTest.exist? to cp from, to, verbose chmod mode, to, verbose if mode end |