aspell: keep going if a bad lang is passed

This commit is contained in:
Adam Vandenberg 2011-03-20 21:16:19 -07:00
parent aec907c468
commit 8f3f245384

View file

@ -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