rename variable in get-version script

Yeah... that looks better. Thanks @mikeller.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2024-01-06 10:49:34 -08:00
parent 7b59749bcb
commit aea2f36de2

View file

@ -43,8 +43,8 @@ if [ ! -f latest-subsurface-buildnumber ] ; then
fi
cd nightly-builds
git fetch &> /dev/null
LAST_BUILD_BRANCHS=$(git branch -a --sort=-committerdate --list | grep remotes/origin/branch-for | head -50 | cut -d/ -f3)
for LAST_BUILD_BRANCH in $LAST_BUILD_BRANCHS "not-found" ; do
LAST_BUILD_BRANCHES=$(git branch -a --sort=-committerdate --list | grep remotes/origin/branch-for | head -50 | cut -d/ -f3)
for LAST_BUILD_BRANCH in $LAST_BUILD_BRANCHES "not-found" ; do
LAST_BUILD_SHA=$(cut -d- -f 3 <<< "$LAST_BUILD_BRANCH")
git -C "$SUBSURFACE_SOURCE" merge-base --is-ancestor "$LAST_BUILD_SHA" HEAD && break
done