If can't determine latest stable release, then quit

pull/2905/head
Isaac Connor 2020-03-30 10:05:19 -04:00
parent 53470ed30b
commit 2f0b991761
1 changed files with 6 additions and 1 deletions

View File

@ -110,7 +110,12 @@ else
fi;
if [ "$SNAPSHOT" == "stable" ]; then
if [ "$BRANCH" == "" ]; then
BRANCH=$(git describe --tags $(git rev-list --tags --max-count=1));
#REV=$(git rev-list --tags --max-count=1)
BRANCH=`git describe --tags $(git rev-list --tags --max-count=1)`;
if [ "$BRANCH" == "" ]; then
echo "Unable to determine latest stable branch!"
exit 0;
fi
echo "Latest stable branch is $BRANCH";
fi;
else