summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2023-12-08 16:39:41 -0800
committerJeremy Evans <code@jeremyevans.net>2023-12-13 07:05:21 -0800
commitc42e4a38e9839fe3380566727304f3fd75a6506a (patch)
treef5b97de84c38603c28747f93921c6bf18af90088 /tool
parent9eba7a08920102747eb9dceeedd8d7c080515aac (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-xtool/ln_sr.rb2
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 << "/"