1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00

deduplicated logic to find zip

This commit is contained in:
Philip Nagler-Frank 2022-05-06 19:38:38 +02:00
parent 23e4c79a1b
commit f7477a2dcf

@ -345,8 +345,8 @@ for branch in ${BRANCH_NAME//,/ }; do
for build in lineage-*.zip; do
sha256sum "$build" > "$ZIP_DIR/$zipsubdir/$build.sha256sum"
cp -v system/build.prop "$ZIP_DIR/$zipsubdir/$build.prop" &>> "$DEBUG_LOG"
mv "$build" "$ZIP_DIR/$zipsubdir/" &>> "$DEBUG_LOG"
done
find . -maxdepth 1 -name 'lineage-*.zip*' -type f -exec mv {} "$ZIP_DIR/$zipsubdir/" \; &>> "$DEBUG_LOG"
recovery_name="lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename-recovery.img"
for image in recovery boot; do
if [ -f "$image.img" ]; then