From 03cc40b360ce09c0197d9c792169b55bdc1a976f Mon Sep 17 00:00:00 2001 From: "Michael Cummings (MSFT)" Date: Thu, 30 Nov 2023 21:58:56 -0500 Subject: [PATCH] convert to if ... fi Co-authored-by: Rolf Bjarne Kvinge --- configure | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure b/configure index f8d63314ef..2b173ea334 100755 --- a/configure +++ b/configure @@ -228,8 +228,12 @@ while test "x$1" != x; do esac done -[[ "$IGNORE_UNKNOWN_PARAMS" = false ]] && [[ -n "$UNKNOWN_PARAMETERS" ]] && exit 1 +if [[ "$IGNORE_UNKNOWN_PARAMS" = false ]] && [[ -n "$UNKNOWN_PARAMETERS" ]]; then + exit 1 +fi -[[ "$IGNORE_UNKNOWN_PARAMS" = true ]] && [[ -n "$UNKNOWN_PARAMETERS" ]] && echo "The following parameters were ignored: $UNKNOWN_PARAMETERS" +if [[ "$IGNORE_UNKNOWN_PARAMS" = true ]] && [[ -n "$UNKNOWN_PARAMETERS" ]]; then + echo "The following parameters were ignored: $UNKNOWN_PARAMETERS" +fi exit 0