mirror of
https://github.com/syncthing/syncthing-android.git
synced 2025-01-10 20:15:54 +00:00
Exclude rc versions from release builds
This commit is contained in:
parent
da84070472
commit
30bbcab92c
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ PROJECT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
cd "ext/syncthing/src/github.com/syncthing/syncthing/"
|
cd "ext/syncthing/src/github.com/syncthing/syncthing/"
|
||||||
git fetch
|
git fetch
|
||||||
CURRENT_TAG=$(git describe)
|
CURRENT_TAG=$(git describe)
|
||||||
LATEST_TAG=$(git describe $(git rev-list --tags --max-count=1))
|
LATEST_TAG=$(git tag --sort=taggerdate | awk '!/rc/' | tail -1)
|
||||||
if [ $CURRENT_TAG != $LATEST_TAG ]
|
if [ $CURRENT_TAG != $LATEST_TAG ]
|
||||||
then
|
then
|
||||||
git checkout -f $LATEST_TAG
|
git checkout -f $LATEST_TAG
|
||||||
|
|
Loading…
Reference in a new issue