aspell: keep going if a bad lang is passed
This commit is contained in:
parent
aec907c468
commit
8f3f245384
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue