pixel: Avoid re-extracting factory images
* Not the most foolproof, but eh * Just remove folder manually if you want to start over for some reason Change-Id: I84c7c52b57d417e7de665a82153cb401024f484e
This commit is contained in:
committed by
Michael Bestas
parent
ee4afeb5d3
commit
7fe1002f7a
@@ -43,6 +43,10 @@ source "${vars_path}/${device}"
|
||||
|
||||
extract_factory_image() {
|
||||
local factory_dir="${work_dir}/${device}/${build_id}/factory"
|
||||
if [[ -d "${factory_dir}" ]]; then
|
||||
echo "Skipping factory image extraction, ${factory_dir} already exists"
|
||||
exit
|
||||
fi
|
||||
mkdir -p "${factory_dir}"
|
||||
local factory_zip="${work_dir}/${device}/${build_id}/$(basename ${image_url})"
|
||||
echo "${image_sha256} ${factory_zip}" | sha256sum --check --status
|
||||
|
||||
Reference in New Issue
Block a user