From 97d46fd5834971e1ba7bd411c52b6c3cb96f6032 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 15 Dec 2020 14:59:24 +0100 Subject: [PATCH] Fix filterUnsupportedExensionsForDistro --- scripts/ci-test-extensions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/ci-test-extensions b/scripts/ci-test-extensions index 6c9aea9..32c0b61 100755 --- a/scripts/ci-test-extensions +++ b/scripts/ci-test-extensions @@ -89,13 +89,15 @@ filterUnsupportedExensionsForDistro() { return fi filterUnsupportedExensionsForDistro_filtered='' - for filterUnsupportedExensionsForDistro_extension in "$EXTENSIONS_TO_BE_TESTED"; do + IFS=' ' + for filterUnsupportedExensionsForDistro_extension in $EXTENSIONS_TO_BE_TESTED; do if stringInList "!$DOCKER_DISTRO" "$(cat "$filterUnsupportedExensionsForDistro_reqs" | grep -E "^$filterUnsupportedExensionsForDistro_extension[ \t]")"; then printf 'Note: extension "%s" is not supported for distro "%s"\n' "$filterUnsupportedExensionsForDistro_extension" "$DOCKER_DISTRO" else filterUnsupportedExensionsForDistro_filtered="$filterUnsupportedExensionsForDistro_filtered $filterUnsupportedExensionsForDistro_extension" fi done + resetIFS EXTENSIONS_TO_BE_TESTED="${filterUnsupportedExensionsForDistro_filtered# }" }