From f496570df4f720a815ceffa389a43cf205f0a725 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 24 Oct 2023 14:55:24 +0200 Subject: [PATCH] CI: accept more clang-format versions --- ci/calamaresstyle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/calamaresstyle b/ci/calamaresstyle index 6b4731465..0f5a80513 100755 --- a/ci/calamaresstyle +++ b/ci/calamaresstyle @@ -44,14 +44,15 @@ test -x "$CF" || { echo "! $CF is not executable."; exit 1 ; } # It also supports inserting braces, which is the one thing we kept # astyle around for. # Version 16 is available on openSUSE and is ok as well. +# Version 17 is available on FreeBSD and KaOS and is ok as well. format_version=`"$CF" --version | tr -dc '[^.0-9]' | cut -d . -f 1` case "$format_version" in - 15|16 ) + 15|16|17 ) : ;; * ) - echo "! Clang-format version '$format_version' unsupported, version 15 or 16 is ok." + echo "! Clang-format version '$format_version' unsupported, versions 15-17 are ok." exit 1 ;; esac