Use clang-format from CI base image (#6391)

This commit is contained in:
Siarhei Fedartsou
2022-10-06 12:50:31 +02:00
committed by GitHub
parent f3c03307cb
commit 52b516e943
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -19,8 +19,8 @@ elif [[ ${OS} = "Darwin" ]] ; then
fi
# Discover clang-format
if type clang-format-10.0.0 2> /dev/null ; then
CLANG_FORMAT=clang-format-10.0.0
if type clang-format-10 2> /dev/null ; then
CLANG_FORMAT=clang-format-10
elif type clang-format 2> /dev/null ; then
# Clang format found, but need to check version
CLANG_FORMAT=clang-format
@@ -30,7 +30,7 @@ elif type clang-format 2> /dev/null ; then
#exit 1
fi
else
echo "No appropriate clang-format found (expected clang-format-10.0.0, or clang-format)"
echo "No appropriate clang-format found (expected clang-format-10, or clang-format)"
exit 1
fi