From 9fc4e6f3e623de5f06c65cea1a3a46fececf28b6 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 17 Mar 2019 06:06:57 -0400 Subject: ob_set_text_domain(): Fix eval commands --- (limited to 'lib') 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 -- cgit v0.9.1