Fix tool/ln_sr.rb passing 2 arguments to String#chomp!

I'm guessing String#sub! was desired here.
This commit is contained in:
Jeremy Evans 2023-12-08 16:39:41 -08:00
parent 9eba7a0892
commit c42e4a38e9

View File

@ -96,7 +96,7 @@ unless respond_to?(:ln_sr)
while c = comp.shift
if c == ".." and clean.last != ".." and !(fu_have_symlink? && File.symlink?(path))
clean.pop
path.chomp!(%r((?<=\A|/)[^/]+/\z), "")
path.sub!(%r((?<=\A|/)[^/]+/\z), "")
else
clean << c
path << c << "/"