aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/mac.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/os/mac.rb')
-rw-r--r--Library/Homebrew/os/mac.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb
index 854d39174..1b207a538 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -42,10 +42,10 @@ module OS
end
def languages
- if ENV["HOMEBREW_LANGUAGES"]
+ @languages ||= if ENV["HOMEBREW_LANGUAGES"]
ENV["HOMEBREW_LANGUAGES"].split(",")
else
- @languages ||= Utils.popen_read("defaults", "read", ".GlobalPreferences", "AppleLanguages").scan(/[^ \n"(),]+/)
+ Utils.popen_read("defaults", "read", ".GlobalPreferences", "AppleLanguages").scan(/[^ \n"(),]+/)
end
end