liunux4odoo 5c650a8dc3
优化目录结构 (#4058)
* 优化目录结构

* 修改一些测试问题

---------

Co-authored-by: glide-the <2533736852@qq.com>
2024-05-22 13:11:45 +08:00

17 lines
292 B
Bash

#!/bin/bash
set -eu
# Initialize a variable to keep track of errors
errors=0
# make sure not importing from chatchat
git --no-pager grep '^from chatchat\.' . && errors=$((errors+1))
# Decide on an exit status based on the errors
if [ "$errors" -gt 0 ]; then
exit 1
else
exit 0
fi