aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorTim D. Smith2016-03-15 23:47:54 -0700
committerXu Cheng2016-03-19 19:14:50 +0800
commit87781f2a3734ad778660126fb2bc9681092f5951 (patch)
tree12bfff0c30e6555f1e9abdd4193db982215e1a1a /Library/Homebrew/extend
parentf0a5abe12e0e037ec7569b63d7169f7a0798b6c6 (diff)
downloadbrew-87781f2a3734ad778660126fb2bc9681092f5951.tar.bz2
Avoid constructing paths by string interpolation
Closes Homebrew/homebrew#50154.
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV/std.rb4
-rw-r--r--Library/Homebrew/extend/ENV/super.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb
index 8bfc5ce57..c75bed707 100644
--- a/Library/Homebrew/extend/ENV/std.rb
+++ b/Library/Homebrew/extend/ENV/std.rb
@@ -67,8 +67,8 @@ module Stdenv
macosxsdk MacOS.version
if MacOS::Xcode.without_clt?
- append_path "PATH", "#{MacOS::Xcode.prefix}/usr/bin"
- append_path "PATH", "#{MacOS::Xcode.toolchain_path}/usr/bin"
+ append_path "PATH", (MacOS::Xcode.prefix/"usr/bin").to_s
+ append_path "PATH", (MacOS::Xcode.toolchain_path/"usr/bin").to_s
end
end
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index c2401602f..6fd259d81 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -119,8 +119,8 @@ module Superenv
# On 10.9, there are shims for all tools in /usr/bin.
# On 10.7 and 10.8 we need to add these directories ourselves.
if MacOS::Xcode.without_clt? && MacOS.version <= "10.8"
- paths << "#{MacOS::Xcode.prefix}/usr/bin"
- paths << "#{MacOS::Xcode.toolchain_path}/usr/bin"
+ paths << (MacOS::Xcode.prefix/"usr/bin").to_s
+ paths << (MacOS::Xcode.toolchain_path/"usr/bin").to_s
end
paths << MacOS::X11.bin.to_s if x11?