From 4b4b6e183ede68265cc38941f62e2bde4af57be8 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 21 Apr 2014 11:03:42 -0500 Subject: [PATCH] Use File::PATH_SEPARATOR since we use it everywhere else --- Library/ENV/4.3/xcrun | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/ENV/4.3/xcrun b/Library/ENV/4.3/xcrun index 5cb008fe94..fbbfa3b574 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: