Fix tool/ln_sr.rb passing 2 arguments to String#chomp!
I'm guessing String#sub! was desired here.
This commit is contained in:
parent
9eba7a0892
commit
c42e4a38e9
@ -96,7 +96,7 @@ unless respond_to?(:ln_sr)
|
|||||||
while c = comp.shift
|
while c = comp.shift
|
||||||
if c == ".." and clean.last != ".." and !(fu_have_symlink? && File.symlink?(path))
|
if c == ".." and clean.last != ".." and !(fu_have_symlink? && File.symlink?(path))
|
||||||
clean.pop
|
clean.pop
|
||||||
path.chomp!(%r((?<=\A|/)[^/]+/\z), "")
|
path.sub!(%r((?<=\A|/)[^/]+/\z), "")
|
||||||
else
|
else
|
||||||
clean << c
|
clean << c
|
||||||
path << c << "/"
|
path << c << "/"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user