android: Increase BUILDNR with zero exit status

This increases BUILDNR in a way that keeps exit status as zero, so the
script doesn't abort due to set -e.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
Anton Lundin 2017-11-15 17:01:11 +01:00 committed by Dirk Hohndel
parent aa7208049f
commit e87a9e1454

View file

@ -132,7 +132,7 @@ if [ ! -f ./buildnr.dat ] ; then
else
BUILDNR=$(cat ./buildnr.dat)
fi
((BUILDNR++))
BUILDNR=$((BUILDNR+1))
echo "${BUILDNR}" > ./buildnr.dat
echo "Building Subsurface-mobile ${VERSION} for Android, build nr ${BUILDNR} as Subsurface-mobile-${VERSION}-arm.apk"