From 4dd07c6ea00d01fe1645b635fd4dfa2940b06de7 Mon Sep 17 00:00:00 2001 From: Michael Lehenbauer Date: Wed, 10 Jan 2018 10:11:46 -0800 Subject: Add version check to style.sh to make sure folks are running the same version. (#638) --- scripts/style.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/style.sh') diff --git a/scripts/style.sh b/scripts/style.sh index 4422350..3e12d5a 100755 --- a/scripts/style.sh +++ b/scripts/style.sh @@ -23,6 +23,12 @@ set -euo pipefail +if [[ $(clang-format --version) != **"version 6"** ]]; then + echo "Please upgrade to clang-format version 6." + echo "If it's installed via homebrew you can run: brew upgrade clang-format" + exit 1 +fi + ( if [[ $# -gt 0 ]]; then if git rev-parse "$1" -- >& /dev/null; then -- cgit v1.2.3