makefile: append || expr to git add

This commit is contained in:
c9s 2021-12-07 16:05:18 +08:00
parent 68b1d9e8c8
commit 17b8be786c

View File

@ -127,7 +127,7 @@ pkg/version/version.go: .FORCE
version: pkg/version/version.go migrations
@[[ ! -e doc/release/$(VERSION).md ]] && echo "file doc/release/$(VERSION).md does not exist" && exit 1
git add -v doc/release/$(VERSION).md
git add -v doc/release/$(VERSION).md || true
git commit $< -m "bump version to $(VERSION)" || true
git tag -f $(VERSION)
git push origin $(VERSION)