completion

This commit is contained in:
2025-08-06 13:49:11 +08:00
commit c2d7317897
684 changed files with 92987 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
if [ -z "$GIT_BRANCH" ]
then
# GIT_BRANCH is empty use git
echo '{ "branch": "'$(git branch | grep \* | cut -d ' ' -f2)'", "commit": "'$(git rev-parse --short=5 --verify HEAD)'"}' > ./src/config/revision.json
else
# user GIT_BRANCH
echo '{ "branch": "'$GIT_BRANCH'", "commit": "'$(git rev-parse --short=5 --verify HEAD)'"}' > ./src/config/revision.json
fi