Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 492ba67

Browse files
steadfasterXSkewedZeppelin
authored andcommitted
fix an issue when no delta requested
this one will break the build when using #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 fdeceb5 commit 492ba67

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
@@ -406,11 +406,11 @@ processRelease() {
406406
if [[ " ${DOS_GENERATE_DELTAS_DEVICES[@]} " =~ " ${DEVICE} " ]]; then cp -v $OUT_DIR/$PREFIX-target_files.zip* $ARCHIVE/target_files/; fi;
407407
cp -v $OUT_DIR/$PREFIX-fastboot.zip* $ARCHIVE/fastboot/ || true;
408408
cp -v $OUT_DIR/$PREFIX-ota.zip* $ARCHIVE/;
409-
cp -v $OUT_DIR/$PREFIX-incremental_*.zip* $ARCHIVE/incrementals/ || true;
409+
if [[ " ${DOS_GENERATE_DELTAS} " == true ]]; then cp -v $OUT_DIR/$PREFIX-incremental_*.zip* $ARCHIVE/incrementals/ || true; fi
410410
cp -v $OUT_DIR/$PREFIX-recovery.img* $ARCHIVE/ || true;
411411

412412
rename -- "-ota." "." $ARCHIVE/$PREFIX-ota.zip*;
413-
rename -- "-incremental_" "-" $ARCHIVE/incrementals/$PREFIX-incremental_*.zip*;
413+
[[ " ${DOS_GENERATE_DELTAS} " == true ]] && rename -- "-incremental_" "-" $ARCHIVE/incrementals/$PREFIX-incremental_*.zip*;
414414
sync;
415415

416416
#Remove to make space for next build

0 commit comments

Comments
 (0)