aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-06-09 14:54:49 -0500
committerJack Nagel2014-06-09 14:57:21 -0500
commit562480ff147505243e3265b8027e98d764babc74 (patch)
treef8ed180cbe0fec3c525fb881172ee1a9ed1bc5e1 /Library/Homebrew/cmd
parentfa0c13874a38ebbb84a56d7aa8ed6d1674935968 (diff)
downloadhomebrew-562480ff147505243e3265b8027e98d764babc74.tar.bz2
Stop joining symbols to pathnames
Ruby 2.2's native Pathname#/ accepts only string-like objects.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/uninstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb
index d9d13df3e..9400a3898 100644
--- a/Library/Homebrew/cmd/uninstall.rb
+++ b/Library/Homebrew/cmd/uninstall.rb
@@ -36,7 +36,7 @@ module Homebrew extend self
end
def rm_opt_link name
- optlink = HOMEBREW_PREFIX/:opt/name
+ optlink = HOMEBREW_PREFIX.join("opt", name)
optlink.unlink if optlink.symlink?
end