Skip to content

Commit

Permalink
Fix tool/ln_sr.rb passing 2 arguments to String#chomp!
Browse files Browse the repository at this point in the history
I'm guessing String#sub! was desired here.
  • Loading branch information
jeremyevans committed Dec 13, 2023
1 parent 9eba7a0 commit c42e4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/ln_sr.rb
Expand Up @@ -96,7 +96,7 @@ def fu_clean_components(*comp)
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 << "/"
Expand Down

0 comments on commit c42e4a3

Please sign in to comment.