diff options
| author | Jack Nagel | 2013-08-06 19:24:17 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-06 19:24:17 -0500 |
| commit | 467419c1f35655174f9460c4ba540de112d46411 (patch) | |
| tree | 92f3696081d08594c23de9e92eee95b7c1f26941 /Library | |
| parent | 3ff3e7443857aa15ec6a2c9db6810c6dbf91a915 (diff) | |
| download | brew-467419c1f35655174f9460c4ba540de112d46411.tar.bz2 | |
Make this logic less confusing
Diffstat (limited to 'Library')
| -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?` |
