device: fix error in generating BUILD_NUMBER

echo $((08/4))
bash: 08: value too great for base (error token is "08")

Signed-off-by: hmz007 <hmz007@gmail.com>
This commit is contained in:
hmz007
2025-07-03 13:45:07 +08:00
parent 8a784c53fb
commit 94b43a223e
+1 -1
View File
@@ -198,7 +198,7 @@ function build_kernel() {
}
function build_android() {
true ${BUILD_NUMBER:=$(date +"6%y%m%d")$(($(date +"%H")/4))}
true ${BUILD_NUMBER:=$(date +"6%y%m%d")$(($(date +"%k")/4))}
export BUILD_NUMBER
FA_RunCmd lunch ${PRODUCT}-${VARIANT}