From 5d36d4b1435a4bfb7310d52f7ebf9f0feddd2abb Mon Sep 17 00:00:00 2001 From: Colin Kinloch Date: Fri, 30 Dec 2022 14:29:41 +0000 Subject: [PATCH] ci: Allow setting clang-format binary --- .ci/scripts/format/script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 .ci/scripts/format/script.sh diff --git a/.ci/scripts/format/script.sh b/.ci/scripts/format/script.sh old mode 100644 new mode 100755 index 119abae6a..225bbc972 --- a/.ci/scripts/format/script.sh +++ b/.ci/scripts/format/script.sh @@ -10,7 +10,7 @@ if grep -nrI '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .ci* dis fi # Default clang-format points to default 3.5 version one -CLANG_FORMAT=clang-format-12 +CLANG_FORMAT=${CLANG_FORMAT:-clang-format-12} $CLANG_FORMAT --version if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then