feat: support openim prom enbels

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

@ -36,13 +36,13 @@ openim::util::trap_add "git worktree remove -f ${_tmpdir}" EXIT
cd "${_tmpdir}" cd "${_tmpdir}"
# Format YAML files # Format YAML files
srcipts/update-yamlfmt.sh scripts/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 'srcipts/update-yamlfmt.sh'" >&2 echo "Please run 'scripts/update-yamlfmt.sh'" >&2
exit 1 exit 1
fi fi
Loading…
Cancel
Save