From 2f109c68a2177489c95c64167a42fd174fb33265 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Thu, 27 Apr 2006 18:09:07 +0000 Subject: [PATCH] Ported r2579 from trunk. --- common/func_validate_configs.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/common/func_validate_configs.sh b/common/func_validate_configs.sh index 078a08c..26c6f4b 100644 --- a/common/func_validate_configs.sh +++ b/common/func_validate_configs.sh @@ -182,13 +182,15 @@ inline_doc HPKG) validate_against_str "x0x x1x" ;; RUNMAKE) validate_against_str "x0x x1x" ;; REPORT) validate_against_str "x0x x1x" - if [[ "${!config_param}" = "1" ]] && [[ `type -p bc` ]]; then - continue - else - echo -e " ${BOLD}The bc binary was not found${OFF}" - echo -e " The SBU and disk usage report creation will be skiped" - REPORT=0 - continue + if [[ "${!config_param}" = "1" ]]; then + if [[ `type -p bc` ]]; then + continue + else + echo -e " ${BOLD}The bc binary was not found${OFF}" + echo -e " The SBU and disk usage report creation will be skiped" + REPORT=0 + continue + fi fi ;; COMPARE) if [[ ! "$COMPARE" = "1" ]]; then validate_against_str "x0x x1x"