mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
update commit script
This commit is contained in:
parent
21b175b4db
commit
4118138cf0
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,8 @@ work_dir=`(cd ${work_dir}/.. && pwd)`
|
||||||
product_dir=$work_dir
|
product_dir=$work_dir
|
||||||
|
|
||||||
# allow start script from any dir
|
# allow start script from any dir
|
||||||
cd $work_dir && git checkout 2.0release
|
cd $work_dir && work_branch=`git branch -a|grep "*"|awk '{print $2}'` && git checkout 2.0release
|
||||||
|
ret=$"; if [[ $ret -ne 0 ]]; then echo "switch branch failed. ret=$ret"; exit $ret; fi
|
||||||
|
|
||||||
. ${product_dir}/scripts/_log.sh
|
. ${product_dir}/scripts/_log.sh
|
||||||
ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi
|
ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi
|
||||||
|
@ -76,4 +77,7 @@ sync_push --tags srs.oschina
|
||||||
sync_push --tags srs.gitlab
|
sync_push --tags srs.gitlab
|
||||||
ok_msg "push tags ok"
|
ok_msg "push tags ok"
|
||||||
|
|
||||||
|
git checkout $work_branch
|
||||||
|
ok_msg "switch to work branch $work_branch"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue