Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
iahob committed May 11, 2023
1 parent f0f8a9a commit 7f9b2d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions githooks/add-pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ for file in $(git diff --cached --name-only)
do
if [[ "${file##*.}"x = "proto"x ]] ;
then
echo "files:${file} has changed, builder start"
docker run --rm -v $(pwd):/go/src/app -w /go/src/app yuwenhaibo/proto-builder sh builder.sh
break
else
echo "skip"
continue
fi
done
docker run --rm -v $(pwd):/go/src/app -w /go/src/app yuwenhaibo/proto-builder sh builder.sh
if [[ ! $(git diff --name-only) ]]; then
echo "Needless To add"
Expand Down

0 comments on commit 7f9b2d4

Please sign in to comment.