diff options
Diffstat (limited to 'debian/_buildscripts/local/build_module.sh')
-rwxr-xr-x | debian/_buildscripts/local/build_module.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/debian/_buildscripts/local/build_module.sh b/debian/_buildscripts/local/build_module.sh index 18d55d778..50c9c3a14 100755 --- a/debian/_buildscripts/local/build_module.sh +++ b/debian/_buildscripts/local/build_module.sh @@ -122,11 +122,13 @@ export OPT_SHOW_LOGS echo -e "${CLightCyan}#### Processing module \"$MOD_NAME\" ####${CNone}" # This folders must exists -BASE_DIRS=("REPO_DIR" "BUILD_DIR" "SCRIPT_DIR" "REPO_TDE_MAIN" "REPO_TDE_PACKAGING" "REPO_EXTRA_DEPENDENCIES" "HOOK_DIR") - +BASE_DIRS=("REPO_DIR" "BUILD_DIR" "SCRIPT_DIR" "REPO_TDE_MAIN" "REPO_TDE_PACKAGING" "HOOK_DIR") +if [[ "$USE_PREBUILD_EXTRA_DEPS" != "y" ]]; then + BASE_DIRS+=("REPO_EXTRA_DEPENDENCIES") +fi for var_name in ${BASE_DIRS[@]}; do if [ ! -d "${!var_name}" ]; then - echo -e "$var_name directory missing. Value is \"${!var_name}\". Check your config or create it." + echo -e "${CYellow}$var_name${CNone} folder missing (${CLightPurple}${!var_name}${CNone}). Check your config or create it." do_exit 4 fi done |