aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-12-14 09:35:58 -0600
committerJack Nagel2013-12-14 09:35:58 -0600
commitdbc688b06b7a86584773fb4aaca3c6aa5c03bb1d (patch)
tree57a826e85cbf060058a6e83ad0d3efdec4190a0e /Library
parent8e2e76d99a3fdf0fab6dbcef5af2ec21677a63c0 (diff)
downloadhomebrew-dbc688b06b7a86584773fb4aaca3c6aa5c03bb1d.tar.bz2
keg: use start_with? instead of regexp match
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg_fix_install_names.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb
index 1d32e6c80..b6cc38313 100644
--- a/Library/Homebrew/keg_fix_install_names.rb
+++ b/Library/Homebrew/keg_fix_install_names.rb
@@ -9,7 +9,7 @@ class Keg
each_install_name_for(file) do |bad_name|
# Don't fix absolute paths unless they are rooted in the build directory
- next if bad_name.start_with? '/' and not %r[^#{HOMEBREW_TEMP}] === bad_name
+ next if bad_name.start_with? '/' and not bad_name.start_with? HOMEBREW_TEMP.to_s
new_name = fixed_name(file, bad_name)
change_install_name(bad_name, new_name, file) unless new_name == bad_name