mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +02:00
[ruby/fileutils] Make ln_s
forward target_directory
to ln_sr
b487f09eed
This commit is contained in:
parent
f62e9f2b53
commit
d21e4e76c4
1 changed files with 1 additions and 1 deletions
|
@ -706,7 +706,7 @@ module FileUtils
|
|||
#
|
||||
def ln_s(src, dest, force: nil, relative: false, target_directory: true, noop: nil, verbose: nil)
|
||||
if relative
|
||||
return ln_sr(src, dest, force: force, noop: noop, verbose: verbose)
|
||||
return ln_sr(src, dest, force: force, target_directory: target_directory, noop: noop, verbose: verbose)
|
||||
end
|
||||
fu_output_message "ln -s#{force ? 'f' : ''}#{
|
||||
target_directory ? '' : 'T'} #{[src,dest].flatten.join ' '}" if verbose
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue