diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-15 12:44:53 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-15 12:44:53 (EDT) |
commit | 9a90a0dc9d5e1c10f34daad5d296a0373e7a9a51 (patch) | |
tree | 14212a5d23614353163c2a0947cbc2054b254d37 /lib | |
parent | e03687ca65e5bd211e2b2daf94a4cc4612a03028 (diff) |
_ob_try_load_messages(): Abort on missing argument
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 12f7685..7b69873 100644 --- a/lib/locale.sh +++ b/lib/locale.sh @@ -36,10 +36,10 @@ ob_get_text_domain() _ob_try_load_messages() { - local locale= + local locale="${1}" + shift 1 || _ob_abort local ms= - locale="${1}" ms="$(printf "${_OB_LOCALE_PATH}" \ "${locale}" "${_ob_text_domain}")" |