5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-09 16:20:26 +00:00

Move --count parameter

This commit is contained in:
Neil Alexander 2018-12-27 21:45:30 +00:00
parent 8c7b9e2f90
commit e6e7f9377f
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -31,7 +31,7 @@ fi
# Add the build tag on non-master branches
if [ "$BRANCH" != "master" ]; then
BUILD=$(git rev-list $TAG..HEAD --count 2>/dev/null)
BUILD=$(git rev-list --count $TAG..HEAD 2>/dev/null)
# Did getting the count of commits since the tag succeed?
if [ $? != 0 ] || [ -z "$BUILD" ]; then