Skip to content

Commit

Permalink
tools: fix clang-format error message
Browse files Browse the repository at this point in the history
This was hard-coded when it should not have been.
  • Loading branch information
julianoes committed Aug 24, 2022
1 parent 425577a commit 52d1e4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/fix_style.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ if [[ $version =~ $semver_regex ]]; then
version_major=${BASH_REMATCH[1]}
if [ "$version_required_major" -gt "$version_major" ]; then
echo "Clang version $version_major too old (required: $version_required_major)"
echo "You can use clang-format-12 from docker:"
echo "You can use clang-format-$version_required_major from docker:"
echo ""
echo " 'tools/run-docker.sh tools/fix_style.sh .'"
exit 1

elif [ "$version_required_major" -lt "$version_major" ]; then
echo "Clang version $version_major too new (required: $version_required_major)"
echo "You can use clang-format-10 from docker:"
echo "You can use clang-format-$version_required_major from docker:"
echo ""
echo " 'tools/run-docker.sh tools/fix_style.sh .'"
exit 1
Expand Down

0 comments on commit 52d1e4e

Please sign in to comment.