🧹 Emit a warning when a linter is not installed

This commit is contained in:
Chris Araman 2021-03-22 00:01:52 -07:00
parent 44f9a42f27
commit af944e8caf
No known key found for this signature in database
GPG key ID: BB4499D9E11B61E0

View file

@ -8,6 +8,13 @@
echo "==> 🚨 Linting mas"
for LINTER in swift-format swiftformat swiftlint; do
if [[ ! -x "$(command -v ${LINTER})" ]]; then
echo "warning: ${LINTER} is not installed: script/bootstrap"
exit 1
fi
done
echo "--> 🌳 Git"
git diff --check