aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-04-21 11:03:42 -0500
committerJack Nagel2014-04-21 11:03:44 -0500
commit9664ed4c30f08a7dc3b200d2bfa72e097f1c2729 (patch)
tree8b48d5b505b5dbf79a9f26bf6c55ec5e03e27fb4
parentb3cbef25bbe101106d9f8070abec76d738eab9b5 (diff)
downloadhomebrew-9664ed4c30f08a7dc3b200d2bfa72e097f1c2729.tar.bz2
Use File::PATH_SEPARATOR since we use it everywhere else
-rwxr-xr-xLibrary/ENV/4.3/xcrun4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/ENV/4.3/xcrun b/Library/ENV/4.3/xcrun
index 5cb008fe9..fbbfa3b57 100755
--- a/Library/ENV/4.3/xcrun
+++ b/Library/ENV/4.3/xcrun
@@ -34,9 +34,7 @@ try `/usr/bin/xcrun --find #{arg0} 2>/dev/null`.chomp
# xcrun won't always be able to find Homebrew's apple-gcc42,
# even when it's in the PATH
-ENV['PATH'].split(':').each do |p|
- try "#{p}/#{arg0}"
-end
+ENV["PATH"].split(File::PATH_SEPARATOR).each { |p| try File.join(p, arg0) }
abort <<-EOS
Your Xcode and or CLT are mis-configured. Try some or all of the following: