diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-17 06:06:57 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-17 06:06:57 (EDT) |
commit | 9fc4e6f3e623de5f06c65cea1a3a46fececf28b6 (patch) | |
tree | 49b2b2e5b3d1f321acf0a8423133b4f5a32c495b /lib | |
parent | a46fc2a52c94538a5bdd4e8072f83ec3d085b29c (diff) |
ob_set_text_domain(): Fix eval commands
Diffstat (limited to 'lib')
-rw-r--r-- | lib/locale.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/locale.sh b/lib/locale.sh index 5898c32..f3ebac5 100644 --- a/lib/locale.sh +++ b/lib/locale.sh @@ -81,10 +81,10 @@ ob_set_text_domain() _ob_builddir="${OB_EXE_BUILDDIR-}" # Exit early if domain's messages have already been loaded. - if eval "\${_ob_text_domain_${_ob_text_domain}_loaded}"; then + if eval "\${_ob_text_domain_${_ob_text_domain}_loaded:-false}"; then return fi - eval "\${_ob_text_domain_${_ob_text_domain}_loaded}=true" + eval "_ob_text_domain_${_ob_text_domain}_loaded=true" # Try to load the messages. if ! _ob_try_load_messages "${LC_MESSAGES%.*}"; then |