Skip to content

Commit a150f0b

Browse files
authored
Fix style.sh to check for mint availability (#11070)
1 parent 0058ef6 commit a150f0b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/style.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
# Commonly
2525
# ./scripts/style.sh master
2626

27+
# Fail the script if any command fails
28+
set -e
29+
2730
# Strip the clang-format version output down to the major version. Examples:
2831
# clang-format version 7.0.0 (tags/google/stable/2018-01-11)
2932
# clang-format version google3-trunk (trunk r333779)
@@ -63,6 +66,11 @@ esac
6366
# /usr/local.
6467
export MINT_PATH=Mint
6568

69+
if ! which mint >/dev/null 2>&1; then
70+
echo "mint is not available, install with 'brew install mint'"
71+
exit 1
72+
fi
73+
6674
system=$(uname -s)
6775

6876
# Joins the given arguments with the separator given as the first argument.

0 commit comments

Comments
 (0)