Currently. the name of the infile for the call to img_from_target_filesis hardcoded, and therefore slightly brittle: it will fail of LOS change the precise naming
infile=$(find "$source_dir/out/target/product/$codename/obj/PACKAGING" -name "lineage_$codename-target_files*.zip")
echo ">> [$(date)] Making -img.zip file from $infile" | tee -a "$DEBUG_LOG"
Currently. the name of the
infile
for the call toimg_from_target_files
is hardcoded, and therefore slightly brittle: it will fail of LOS change the precise namingBetter to get the filename using
find
(as we do forimg_dir
later onSo change to