emqx/scripts/check-format.sh
Zaiming (Stone) Shi f50fcf9f4e chore: delete per-app format scripts
Now that all apps are formated, we no longer need per-app format script
2022-05-11 09:15:32 +02:00

18 lines
306 B
Bash
Executable File

#!/usr/bin/env bash
## Used in CI. this scripts wraps format_app.py
## and check git diff
set -euo pipefail
cd -P -- "$(dirname -- "$0")/.."
make fmt
DIFF_FILES="$(git diff --name-only)"
if [ "$DIFF_FILES" != '' ]; then
echo "ERROR: Below files need reformat"
echo "$DIFF_FILES"
exit 1
fi