From 92f2bfa4d1e918e7e3fbe847c35805422aaab618 Mon Sep 17 00:00:00 2001 From: Hyotaek Shim Date: Mon, 13 Jun 2022 14:56:02 +0900 Subject: [PATCH] Obtain TZ_BUILD_DATE in the same manner from OBS and QuickBuild Change-Id: I8def97b84e3a971e8b91cffda06cafae90edec8b Signed-off-by: Hyotaek Shim --- scripts/generic-base.post | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/generic-base.post b/scripts/generic-base.post index 885a8ec..d3a1bd6 100644 --- a/scripts/generic-base.post +++ b/scripts/generic-base.post @@ -12,7 +12,8 @@ rm -rf /home ln -snf opt/usr/home /home build_ts=$(date -u +%s) -build_date=$(date -u --date @$build_ts +%Y%m%d_%H%M%S) +build_date_local=$(date -u --date @$build_ts +%Y%m%d_%H%M%S) +build_date=$(echo @BUILD_DATE@ | sed -r -e "s/@BUILD_DATE[@]/$build_date_local/g") build_time=$(date -u --date @$build_ts +%H:%M:%S) sed -ri \ -- 2.7.4