mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
runnable.rb: ignore broken symlink error on Windows [ci skip]
This commit is contained in:
parent
0d30f42813
commit
0d1f0cd9cc
1 changed files with 6 additions and 2 deletions
|
@ -45,6 +45,10 @@ end
|
|||
|
||||
def ln_safe(src, dest)
|
||||
ln_sf(src, dest)
|
||||
rescue Errno::ENOENT
|
||||
# Windows disallows to create broken symboic links, probably because
|
||||
# it is a kind of reparse points.
|
||||
raise if File.exist?(src)
|
||||
end
|
||||
|
||||
alias ln_dir_safe ln_safe
|
||||
|
|
Loading…
Add table
Reference in a new issue