Use File::PATH_SEPARATOR since we use it everywhere else

This commit is contained in:
Jack Nagel 2014-04-21 11:03:42 -05:00
parent c832bd1591
commit 4b4b6e183e

View File

@ -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: