From 71dd5a5c5b9d99c6caf1619cd2d245bf1c1b7b1f Mon Sep 17 00:00:00 2001 From: Jeremy Huntwork Date: Mon, 10 Apr 2006 18:40:37 +0000 Subject: [PATCH] Exit when LANG isn't set on the host system, instead of seeming to continue but failing to generate the Makefile. --- common/func_validate_configs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/func_validate_configs.sh b/common/func_validate_configs.sh index 727ddcc..2baadc3 100644 --- a/common/func_validate_configs.sh +++ b/common/func_validate_configs.sh @@ -158,8 +158,8 @@ inline_doc if [[ "${config_param}" = "LANG" ]]; then echo "`eval echo $PARAM_VALS`" - [[ -z "${!config_param}" ]] && continue - # See it the locale values exist on this machine + [[ -z "${!config_param}" ]] && echo -e "\nVariable LANG cannot be empty!" && write_error_and_die + # See if the locale values exist on this machine if [[ "`locale -a | grep -c ${!config_param}`" > 0 ]]; then continue else # If you make it this far then there is a problem