diff options
| author | Jack Nagel | 2013-08-06 19:24:17 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-06 19:24:17 -0500 |
| commit | f57ec1fe263b4ce729f9e399ecd1aa252fe2d511 (patch) | |
| tree | 4205ab56b5fd61a8d6d4ef1c6de1bb7a97f95f60 /Library/Homebrew | |
| parent | 6a84f2882ccaaa286100d170d21657987eb26155 (diff) | |
| download | homebrew-f57ec1fe263b4ce729f9e399ecd1aa252fe2d511.tar.bz2 | |
Make this logic less confusing
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/superenv.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/superenv.rb b/Library/Homebrew/superenv.rb index 85f8c448b..c2c115900 100644 --- a/Library/Homebrew/superenv.rb +++ b/Library/Homebrew/superenv.rb @@ -17,10 +17,10 @@ def superbin end def superenv? - not (MacSystem.xcode43_without_clt? and - MacOS.sdk_path.nil?) and # because superenv will fail to find stuff - superbin and superbin.directory? and - not ARGV.include? "--env=std" + return false if MacSystem.xcode43_without_clt? && MacOS.sdk_path.nil? + return false unless superbin && superbin.directory? + return false if ARGV.include? "--env=std" + true end # Note that this block is guarded with `if superenv?` |
