mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 21:39:19 +08:00
c7861c2dba
Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
14 lines
288 B
Bash
Executable File
14 lines
288 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
SCRIPTS_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|
|
|
cd ${SCRIPTS_DIR}
|
|
|
|
GO_SRC_DIR="${SCRIPTS_DIR}/$1"
|
|
if test -z "$(git status | grep -E "*pb.go|*pb.cc|*pb.h")"; then
|
|
exit 0
|
|
else
|
|
echo "The go file or cpp file generated by proto are not latest!"
|
|
exit 1
|
|
fi
|