aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-04-20 16:51:45 -0500
committerJack Nagel2014-04-20 16:52:59 -0500
commita00dcd007965102160244a0cde0366e4825aa485 (patch)
tree143ce7bdc544dbe63374d68960a72710e9c3a5cb /Library
parent275e66e08d3dd8870a8b06b4a1b9e45adf52e1ea (diff)
downloadbrew-a00dcd007965102160244a0cde0366e4825aa485.tar.bz2
Use a multiline conditional to make this code more readable
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/xcrun5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/ENV/4.3/xcrun b/Library/ENV/4.3/xcrun
index 0cef2bbfb..3bcfa89e4 100755
--- a/Library/ENV/4.3/xcrun
+++ b/Library/ENV/4.3/xcrun
@@ -16,7 +16,10 @@ SUPERBIN = canonical_dirname(__FILE__)
# Some build tools are stupid and still set DEVELOPER_DIR to old /Developer
ENV.delete "DEVELOPER_DIR"
-exec "/usr/bin/xcrun", *ARGV if ARGV.empty? or ARGV[0][0..0] == '-'
+if ARGV.empty? || ARGV[0][0..0] == "-"
+ exec "/usr/bin/xcrun", *ARGV
+end
+
if File.exist?("/usr/bin/#{ARGV.first}")
sdkroot = ENV['HOMEBREW_SDKROOT']
exec "/usr/bin/#{ARGV.shift}", *ARGV unless sdkroot and File.directory? sdkroot