Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add BSD support to 'set.locale'.

  • Loading branch information...
commit 021143704d413c55d30c0c59557e292f8b14b30b 1 parent 6ce0663
Ben Hoskings authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 locale.rb
9 locale.rb
View
@@ -19,10 +19,15 @@ def local_locale locale_name
meet {
sudo("echo 'LANG=#{local_locale(locale_name)}' > /etc/default/locale")
}
- after {
- log "Setting the locale doesn't take effect until you log out and back in."
+ end
+ on :bsd do
+ meet {
+ sudo("echo 'LANG=#{local_locale(locale_name)}' > /etc/profile")
}
end
+ after {
+ log "Setting the locale doesn't take effect until you log out and back in."
+ }
end
dep 'exists.locale', :locale_name do
Please sign in to comment.
Something went wrong with that request. Please try again.