From aec3df8509fe46158d11de409e773edcfdff5aa8 Mon Sep 17 00:00:00 2001 From: Julian Locke Date: Wed, 26 Jul 2023 12:18:32 -0700 Subject: [PATCH] Allow clang-format versions down to 7 --- Format/format_files.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Format/format_files.sh b/Format/format_files.sh index 2ddd375dd..dd62da08c 100755 --- a/Format/format_files.sh +++ b/Format/format_files.sh @@ -14,7 +14,7 @@ exit_with_message() { } exit_with_clang_format_install_message() { - exit_with_message "Skipping code formatting. Please install clang-format version 16 or greater: 'brew install clang-format'" + exit_with_message "Skipping code formatting. Please install clang-format version 7 or greater: 'brew install clang-format'" } if ! [ -x "$(command -v clang-format)" ]; then @@ -27,8 +27,7 @@ fi clang_format_version="$(clang-format --version | cut -f3 -w | tail)" clang_format_version_major=$(awk -F. '{print $1}' <<<"$clang_format_version") - -if [ "$clang_format_version_major" -lt 16 ]; then +if [ "$clang_format_version_major" -lt 7 ]; then exit_with_clang_format_install_message fi