Skip to content
Snippets Groups Projects
Commit a00dcd00 authored by Jack Nagel's avatar Jack Nagel
Browse files

Use a multiline conditional to make this code more readable

parent 275e66e0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment