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:
parent
23e4c79a1b
commit
f7477a2dcf
@ -345,8 +345,8 @@ for branch in ${BRANCH_NAME//,/ }; do
|
|||||||
for build in lineage-*.zip; do
|
for build in lineage-*.zip; do
|
||||||
sha256sum "$build" > "$ZIP_DIR/$zipsubdir/$build.sha256sum"
|
sha256sum "$build" > "$ZIP_DIR/$zipsubdir/$build.sha256sum"
|
||||||
cp -v system/build.prop "$ZIP_DIR/$zipsubdir/$build.prop" &>> "$DEBUG_LOG"
|
cp -v system/build.prop "$ZIP_DIR/$zipsubdir/$build.prop" &>> "$DEBUG_LOG"
|
||||||
|
mv "$build" "$ZIP_DIR/$zipsubdir/" &>> "$DEBUG_LOG"
|
||||||
done
|
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"
|
recovery_name="lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename-recovery.img"
|
||||||
for image in recovery boot; do
|
for image in recovery boot; do
|
||||||
if [ -f "$image.img" ]; then
|
if [ -f "$image.img" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user