feat: support openim prom enbels

Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
pull/1745/head
Xinwei Xiong (cubxxw) 2 years ago
parent e9e831212e
commit 8316fa31b6

@ -36,13 +36,13 @@ openim::util::trap_add "git worktree remove -f ${_tmpdir}" EXIT
cd "${_tmpdir}" cd "${_tmpdir}"
# Format YAML files # Format YAML files
hack/update-yamlfmt.sh srcipts/update-yamlfmt.sh
# Test for diffs # Test for diffs
diffs=$(git status --porcelain | wc -l) diffs=$(git status --porcelain | wc -l)
if [[ ${diffs} -gt 0 ]]; then if [[ ${diffs} -gt 0 ]]; then
echo "YAML files need to be formatted" >&2 echo "YAML files need to be formatted" >&2
git diff git diff
echo "Please run 'hack/update-yamlfmt.sh'" >&2 echo "Please run 'srcipts/update-yamlfmt.sh'" >&2
exit 1 exit 1
fi fi
Loading…
Cancel
Save