pixel/download.sh: Only download OTA when needed

Change-Id: I32488c1f15f6c7972e35a14641081ab4efeed3d9
This commit is contained in:
Chirayu Desai
2021-12-03 04:03:31 +05:30
committed by Michael Bestas
parent ecc10587d8
commit 99f443c10e

View File

@@ -67,7 +67,10 @@ help_message() {
main() {
download_factory_image
download_ota_zip
# Not all devices need OTA, most are supported in image_unpacker
if [[ -n ${needs_ota-} ]]; then
download_ota_zip
fi
}
### RUN PROGRAM ###