diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-01-23 14:41:04 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-01-23 14:41:04 (EST) |
commit | a0db3a63e8f5f5796db3f4a631e6caca6432b791 (patch) | |
tree | 586ff6aab68be2bf2ff7e99402da1bb634fabd19 /src | |
parent | 5f5d78f778aa43497d6f86a2e49b55e3e243ce38 (diff) |
main(): Exit on missing locale
Diffstat (limited to 'src')
-rw-r--r-- | src/main.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.sh b/src/main.sh index 51b21ac..17cc42b 100644 --- a/src/main.sh +++ b/src/main.sh @@ -42,7 +42,9 @@ main() local cmd= local es= - load_locale + if ! load_locale; then + return 2 + fi if ! get_options "${@}"; then cmd_help_main >&2 |