From d919ce1830fa8cb4e295f5b053a4c7e7c8bd548b Mon Sep 17 00:00:00 2001 From: Michael Lehenbauer Date: Tue, 9 Jan 2018 18:02:52 -0800 Subject: [PATCH 1/2] Add version check to style.sh to make sure folks are running the same version. --- scripts/style.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/style.sh b/scripts/style.sh index 4422350d5e6..8e9fbe9cf33 100755 --- a/scripts/style.sh +++ b/scripts/style.sh @@ -23,6 +23,11 @@ set -euo pipefail +if [[ $(clang-format --version) != **"version 6"** ]]; then + echo "Please upgrade to clang-format version 6." + exit 1 +fi + ( if [[ $# -gt 0 ]]; then if git rev-parse "$1" -- >& /dev/null; then From a80ec22bc3ac4489a8012da3e73c6c1e0e2ade30 Mon Sep 17 00:00:00 2001 From: Michael Lehenbauer Date: Wed, 10 Jan 2018 08:56:31 -0800 Subject: [PATCH 2/2] Add homebrew instructions for upgrading. --- scripts/style.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/style.sh b/scripts/style.sh index 8e9fbe9cf33..3e12d5ad476 100755 --- a/scripts/style.sh +++ b/scripts/style.sh @@ -25,6 +25,7 @@ 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