From 62baa4f655a767b01ce0337608b379e10edeee0a Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 4 Oct 2023 11:08:57 +0200 Subject: [PATCH] new: [compose-core] avoid displaying information about optional relations available in quiet mode --- bin/compose-core | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/compose-core b/bin/compose-core index cc6da07..5b4f10b 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -2676,9 +2676,11 @@ get_all_relations () { ## make recommendation echo "$(_display_solves recommended)" | sed -r "s/^/${YELLOW}||${NORMAL} /g" >&2 fi - if [ "${#optional[@]}" != 0 ]; then - ## inform about options - echo "$(_display_solves optional)" | sed -r "s/^/${BLUE}||${NORMAL} /g" >&2 + if [ -z "$QUIET" ]; then + if [ "${#optional[@]}" != 0 ]; then + ## inform about options + echo "$(_display_solves optional)" | sed -r "s/^/${BLUE}||${NORMAL} /g" >&2 + fi fi # if [ "${#required[@]}" != 0 ]; then # err "Required relations not satisfied"