mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
Add debugging info to do_cleanup
This commit is contained in:
parent
8bbcfbaecb
commit
db25e1bdcf
@ -76,13 +76,17 @@ do_cleanup() {
|
|||||||
if [ "$CLEAN_AFTER_BUILD" = true ]; then
|
if [ "$CLEAN_AFTER_BUILD" = true ]; then
|
||||||
echo ">> [$(date)] Cleaning source dir for device $codename" | tee -a "$DEBUG_LOG"
|
echo ">> [$(date)] Cleaning source dir for device $codename" | tee -a "$DEBUG_LOG"
|
||||||
if [ "$BUILD_OVERLAY" = true ]; then
|
if [ "$BUILD_OVERLAY" = true ]; then
|
||||||
|
echo ">> [$(date)] Removing $TMP_DIR for device $codename" | tee -a "$DEBUG_LOG"
|
||||||
cd "$TMP_DIR"
|
cd "$TMP_DIR"
|
||||||
rm -rf ./* || true
|
rm -rf ./* || true
|
||||||
else
|
else
|
||||||
cd "$source_dir"
|
cd "$source_dir"
|
||||||
(set +eu ; mka "${jobs_arg[@]}" clean) &>> "$DEBUG_LOG"
|
(set +eu ; mka "${jobs_arg[@]}" clean) &>> "$DEBUG_LOG"
|
||||||
|
echo ">> [$(date)] Removing $PWD/vendor for device $codename" | tee -a "$DEBUG_LOG"
|
||||||
rm -rf vendor/* || true
|
rm -rf vendor/* || true
|
||||||
|
echo ">> [$(date)] Removing $PWD/kernel for device $codename" | tee -a "$DEBUG_LOG"
|
||||||
rm -rf kernel/* || true
|
rm -rf kernel/* || true
|
||||||
|
echo ">> [$(date)] Removing $PWD/device for device $codename" | tee -a "$DEBUG_LOG"
|
||||||
rm -rf device/* || true
|
rm -rf device/* || true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user