completion
This commit is contained in:
8
ioneapps-maagapp-ee31119a522d/update-revision.sh
Normal file
8
ioneapps-maagapp-ee31119a522d/update-revision.sh
Normal 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
|
||||
Reference in New Issue
Block a user