release/version: Only support official builds

Change-Id: I1cf7d253235d4ea555b825cf9996407a39dff507
This commit is contained in:
Chirayu Desai 2023-07-07 03:52:20 +05:30
parent 6dc1186b8f
commit 06055a8fb7
1 changed files with 1 additions and 5 deletions

View File

@ -41,11 +41,7 @@ get_build_number() {
readonly minor=$(cat "${mk}" | grep ^PRODUCT_VERSION_MINOR | awk '{printf "%s\n", $3}')
readonly patch=$(cat "${mk}" | grep ^PRODUCT_VERSION_PATCH | awk '{printf "%s\n", $3}')
version=$((${year} * 1000000 + ${major} * 100000 +${minor} * 1000 + ${patch} * 10))
if [[ -n ${OFFICIAL_BUILD} ]]; then
echo "${version}"
else
echo "eng.${version}"
fi
echo "${version}"
}
# error message