diff options
| author | Adam Vandenberg | 2011-03-20 21:16:19 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-20 21:16:19 -0700 |
| commit | 0fcb6d84066603c90f68a35dddd3d709ceb82070 (patch) | |
| tree | 9b9c66adec9144eecf3bf305f051a35bbbe5676a /Library/Formula | |
| parent | 0eec8c9f640563c56ca51f8b95b52d69e9ec9871 (diff) | |
| download | homebrew-0fcb6d84066603c90f68a35dddd3d709ceb82070.tar.bz2 | |
aspell: keep going if a bad lang is passed
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/aspell.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/aspell.rb b/Library/Formula/aspell.rb index 68f5956c6..3d7f2fe54 100644 --- a/Library/Formula/aspell.rb +++ b/Library/Formula/aspell.rb @@ -34,7 +34,12 @@ class Aspell < Formula end end languages.flatten.each do |lang| - formula = Object.const_get("Aspell_" + lang).new + begin + formula = Object.const_get("Aspell_" + lang).new + rescue + opoo "Unknown language: #{lang}" + next + end formula.brew { formula.install } end end |
