Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Commit 1ef7f28

Browse files
committed
ota: Improve handling of build timestamp
1 parent 4e630b4 commit 1ef7f28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ generatePackages() {
110110
generateOta() {
111111
echo "--> Generating OTA file"
112112
version="$(date +v%Y.%m.%d)"
113-
timestamp="$(date +%s -d '-2hours')"
113+
timestamp="$START"
114114
json="{\"version\": \"$version\",\"date\": \"$timestamp\",\"variants\": ["
115115
find $BD/ -name "PixelExperience_*" | sort | {
116116
while read file; do
@@ -132,7 +132,7 @@ generateOta() {
132132
echo
133133
}
134134

135-
START=`date +%s`
135+
START=$(date +%s)
136136

137137
initRepos
138138
syncRepos
@@ -145,7 +145,7 @@ buildVndkliteVariant
145145
generatePackages
146146
generateOta
147147

148-
END=`date +%s`
148+
END=$(date +%s)
149149
ELAPSEDM=$(($(($END-$START))/60))
150150
ELAPSEDS=$(($(($END-$START))-$ELAPSEDM*60))
151151

0 commit comments

Comments
 (0)