Skip to content

Commit

Permalink
Add arch support to 'set.locale'.
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoskings committed Nov 26, 2013
1 parent 0db300f commit 9e83bef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ def local_locale locale_name
shell('locale').val_for('LANG')[locale_regex(locale_name)]
}
meet {
if Babushka.host.matches?(:apt)
if Babushka.host.matches?(:arch)
sudo("echo 'LANG=#{local_locale(locale_name)}' > /etc/locale.conf")
elsif Babushka.host.matches?(:apt)
sudo("echo 'LANG=#{local_locale(locale_name)}' > /etc/default/locale")
elsif Babushka.host.matches?(:bsd)
sudo("echo 'LANG=#{local_locale(locale_name)}' > /etc/profile")
Expand Down

0 comments on commit 9e83bef

Please sign in to comment.