diff options
author | Jeremy Evans <code@jeremyevans.net> | 2023-12-08 16:39:41 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2023-12-13 07:05:21 -0800 |
commit | c42e4a38e9839fe3380566727304f3fd75a6506a (patch) | |
tree | f5b97de84c38603c28747f93921c6bf18af90088 /tool | |
parent | 9eba7a08920102747eb9dceeedd8d7c080515aac (diff) |
Fix tool/ln_sr.rb passing 2 arguments to String#chomp!
I'm guessing String#sub! was desired here.
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/ln_sr.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/ln_sr.rb b/tool/ln_sr.rb index 2aa8391e17..e1b5b6f76b 100755 --- a/tool/ln_sr.rb +++ b/tool/ln_sr.rb @@ -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 << "/" |