From b28896b39717e859665e3823290564c4d0f271b4 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Mon, 16 Nov 2020 11:54:42 +0100 Subject: [PATCH] do exact bcond match when reporting active bconds `builder --without static_libs bash` reports bcond is active even though it's not --- builder.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder.sh b/builder.sh index 2daade8..ed2184b 100755 --- a/builder.sh +++ b/builder.sh @@ -1824,7 +1824,7 @@ set_bconds_values() { without_*) bcond=${opt#without_} case "$BCOND" in - *--without?${bcond}*) + *--without?${bcond}\ *|*--without?${bcond}) AVAIL_BCONDS_WITHOUT="$AVAIL_BCONDS_WITHOUT <$bcond>" ;; *) @@ -1835,7 +1835,7 @@ set_bconds_values() { with_*) bcond=${opt#with_} case "$BCOND" in - *--with?${bcond}*) + *--with?${bcond}\ *|*--with?${bcond}) AVAIL_BCONDS_WITH="$AVAIL_BCONDS_WITH <$bcond>" ;; *) -- 2.43.0