From 06187d4a9f316d8634d4868f851cf1a3fbae4539 Mon Sep 17 00:00:00 2001 From: Yanfeng Lee Date: Sat, 12 Oct 2024 00:00:12 +0200 Subject: [PATCH] Add commit id to localversion string --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index bdb822db80bc..a0cc1bd2a4c2 100644 --- a/build.sh +++ b/build.sh @@ -111,7 +111,7 @@ git clone https://github.com/liyafe1997/AnyKernel3 -b kona --single-branch --dep # Add date to local version local_version_str="-perf" -local_version_date_str="-perf-$(date +%Y%m%d)" +local_version_date_str="-$(date +%Y%m%d)-${GIT_COMMIT_ID}-perf" sed -i "s/${local_version_str}/${local_version_date_str}/g" arch/arm64/configs/${TARGET_DEVICE}_defconfig