Skip to content

Commit 4dd07c6

Browse files
authored
Add version check to style.sh to make sure folks are running the same version. (#638)
1 parent c18af34 commit 4dd07c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/style.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323

2424
set -euo pipefail
2525

26+
if [[ $(clang-format --version) != **"version 6"** ]]; then
27+
echo "Please upgrade to clang-format version 6."
28+
echo "If it's installed via homebrew you can run: brew upgrade clang-format"
29+
exit 1
30+
fi
31+
2632
(
2733
if [[ $# -gt 0 ]]; then
2834
if git rev-parse "$1" -- >& /dev/null; then

0 commit comments

Comments
 (0)