Skip to content

Commit 1cf7f6d

Browse files
committed
fix an issue when no delta requested
this one will break the build when using Divested-Mobile#206 : > rename: /ssd/tmp/dos/hotdog/LineageOS-20.0/release_keys//incrementals/xxxx-20.0-20230713-dos-hotdog-incremental_*.zip*: not accessible: No such file or directory the next one is a cosmetic thing only. while the current implementation does not break the build I prefer skipping it if not needed at all instead of just the `|| true` workaround. "fixes" the message in build output when no delta is requested: > cp: cannot stat 'xxxx-20.0-20230713-dos-hotdog-incremental_*.zip*': No such file or directory Signed-off-by: steadfasterX <[email protected]>
1 parent 0aae983 commit 1cf7f6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/Common/Functions.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -419,11 +419,11 @@ processRelease() {
419419
if [[ " ${DOS_GENERATE_DELTAS_DEVICES[@]} " =~ " ${DEVICE} " ]]; then cp -v $OUT_DIR/$PREFIX-target_files.zip* $ARCHIVE/target_files/; fi;
420420
cp -v $OUT_DIR/$PREFIX-fastboot.zip* $ARCHIVE/fastboot/ || true;
421421
cp -v $OUT_DIR/$PREFIX-ota.zip* $ARCHIVE/;
422-
cp -v $OUT_DIR/$PREFIX-incremental_*.zip* $ARCHIVE/incrementals/ || true;
422+
if [[ " ${DOS_GENERATE_DELTAS} " == true ]]; then cp -v $OUT_DIR/$PREFIX-incremental_*.zip* $ARCHIVE/incrementals/ || true; fi
423423
cp -v $OUT_DIR/$PREFIX-recovery.img* $ARCHIVE/ || true;
424424

425425
rename -- "-ota." "." $ARCHIVE/$PREFIX-ota.zip*;
426-
rename -- "-incremental_" "-" $ARCHIVE/incrementals/$PREFIX-incremental_*.zip*;
426+
[[ " ${DOS_GENERATE_DELTAS} " == true ]] && rename -- "-incremental_" "-" $ARCHIVE/incrementals/$PREFIX-incremental_*.zip*;
427427
sync;
428428

429429
#Remove to make space for next build

0 commit comments

Comments
 (0)