diff --git a/scripts/t8indent b/scripts/t8indent index 8c1567acb7..bf5aff81a3 100755 --- a/scripts/t8indent +++ b/scripts/t8indent @@ -31,8 +31,7 @@ FORMAT_OPTIONS="-i --style=file" # Required version of the clang format program. REQUIRED_VERSION_MAJOR="17" REQUIRED_VERSION_MINOR="0" -REQUIRED_VERSION_PATCH="1" -REQUIRED_VERSION_STRING="${REQUIRED_VERSION_MAJOR}.${REQUIRED_VERSION_MINOR}.${REQUIRED_VERSION_PATCH}" +REQUIRED_VERSION_STRING="${REQUIRED_VERSION_MAJOR}.${REQUIRED_VERSION_MINOR}" FORMAT=`which clang-format 2> /dev/null` @@ -52,7 +51,7 @@ MAJOR=`echo $VERSION | cut -d. -f1` MINOR=`echo $VERSION | cut -d. -f2` PATCH=`echo $VERSION | cut -d. -f3` -if [[ "$MAJOR" != "$REQUIRED_VERSION_MAJOR" || $MINOR != "$REQUIRED_VERSION_MINOR" || $PATCH != "$REQUIRED_VERSION_PATCH" ]]; then +if [[ "$MAJOR" != "$REQUIRED_VERSION_MAJOR" || $MINOR != "$REQUIRED_VERSION_MINOR" ]]; then echo "Please install clang-format version $REQUIRED_VERSION_STRING" exit 1 fi