diff options
| author | Max Howell | 2009-12-01 10:51:46 +0000 |
|---|---|---|
| committer | Max Howell | 2009-12-01 12:07:34 +0000 |
| commit | 9294e198591ce9f25ebfb2dc2e8dc16df427b578 (patch) | |
| tree | 4da2a1cbd0ef3be9b146d0f6979f81ce1c0e3fa7 /Library | |
| parent | a011dd67622473db8d5c41c056f0508c2465542a (diff) | |
| download | brew-9294e198591ce9f25ebfb2dc2e8dc16df427b578.tar.bz2 | |
`brew --config` output improved if no GCC
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 97d8db29f..3e23988ab 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -439,7 +439,11 @@ end def gcc_build `/usr/bin/gcc-4.2 -v 2>&1` =~ /build (\d{4,})/ - $1.to_i + if $1 + $1.to_i + else + nil + end end def llvm_build |
