5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 14:10:28 +00:00

Fix incorrect check

This commit is contained in:
Neil Alexander 2018-12-27 21:36:50 +00:00
parent 7eaee172cf
commit 6fcd8a8dbd
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -5,7 +5,7 @@ TAG=$(git describe --abbrev=0 --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" 2>/dev/nu
# Did getting the tag succeed? # Did getting the tag succeed?
if [ $? != 0 ] || [ -z "$TAG" ]; then if [ $? != 0 ] || [ -z "$TAG" ]; then
printf "unknown" printf -- "unknown"
exit 1 exit 1
fi fi
@ -34,7 +34,8 @@ if [ "$BRANCH" != "master" ]; then
BUILD=$(git rev-list $TAG..HEAD --count 2>/dev/null) BUILD=$(git rev-list $TAG..HEAD --count 2>/dev/null)
# Did getting the count of commits since the tag succeed? # Did getting the count of commits since the tag succeed?
if [ $? != 0 ] && [ -z "$BUILD" ]; then if [ $? != 0 ] || [ -z "$BUILD" ]; then
printf -- "-unknown"
exit 1 exit 1
fi fi