mirror of
https://github.com/espressif/openthread.git
synced 2025-05-17 15:26:16 +08:00
[clang-format] accept different patch versions of clang-format
(#10042)
Homebrew installation of clang-format (satisfying >14.0 requirement) outputs the following version string: ``` Homebrew clang-format version 14.0.6 ``` This change fixes the following error while running make-pretty: ``` *** ERROR: Homebrew clang-format version 14.0.6; clang-format 14.0 required ```
This commit is contained in:
@ -43,7 +43,7 @@ if command -v clang-format-14 >/dev/null; then
|
||||
alias clang-format=clang-format-14
|
||||
elif command -v clang-format >/dev/null; then
|
||||
case "$(clang-format --version)" in
|
||||
"$CLANG_FORMAT_VERSION"*) ;;
|
||||
*"$CLANG_FORMAT_VERSION"*) ;;
|
||||
|
||||
*)
|
||||
die "$(clang-format --version); clang-format 14.0 required"
|
||||
|
Reference in New Issue
Block a user