From c41975127897f71c0f74c5f90b4b3c39b16ad7d5 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Tue, 18 Dec 2018 03:43:28 +0000 Subject: [PATCH] config/path: redirect output less often --- config/path | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/config/path b/config/path index f16f18e7e1..ce072d6848 100644 --- a/config/path +++ b/config/path @@ -151,16 +151,20 @@ fi VERSION_SUFFIX=$TARGET_ARCH -SILENT_OUT=3 -VERBOSE_OUT=4 -if [ "$VERBOSE" = yes ]; then - exec 3>&1 - exec 4>&2 -else - exec 3>&2 - exec 4>/dev/null +# redirect formatted output +if [ -z "${SILENT_OUT}" -a -z "${VERBOSE_OUT}" ]; then + export BUILD_INDENT_SIZE=4 + export SILENT_OUT=3 + export VERBOSE_OUT=4 + + if [ "$VERBOSE" = yes ]; then + exec 3>&1 + exec 4>&2 + else + exec 3>&2 + exec 4>/dev/null + fi fi -BUILD_INDENT_SIZE=4 # If sourcing a package, configure any package variables dependent on variables we have set if [ -n "$PKG_DIR" -a -r $PKG_DIR/package.mk ]; then