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

fix #694 set DEBUG_LOG as soon as we know codename

This commit is contained in:
Pete Fotheringham 2024-10-03 07:17:17 +01:00 committed by GitHub
parent 6d09a4a7b1
commit fe03fc3f07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -234,6 +234,9 @@ for codename in ${devices//,/ }; do
logsubdir= logsubdir=
fi fi
# Set device specific logfils
DEBUG_LOG="$LOGS_DIR/$logsubdir/$branch-$builddate-$RELEASE_TYPE-$codename.log"
# `repo init` # `repo init`
if [ "$CALL_REPO_INIT" = true ]; then if [ "$CALL_REPO_INIT" = true ]; then
echo ">> [$(date)] (Re)initializing branch repository" | tee -a "$repo_log" echo ">> [$(date)] (Re)initializing branch repository" | tee -a "$repo_log"
@ -308,7 +311,7 @@ for codename in ${devices//,/ }; do
los_ver_minor=$(sed -n -e 's/^\s*PRODUCT_VERSION_MINOR = //p' "$makefile_containing_version") los_ver_minor=$(sed -n -e 's/^\s*PRODUCT_VERSION_MINOR = //p' "$makefile_containing_version")
los_ver="$los_ver_major.$los_ver_minor" los_ver="$los_ver_major.$los_ver_minor"
DEBUG_LOG="$LOGS_DIR/$logsubdir/lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename.log" # DEBUG_LOG="$LOGS_DIR/$logsubdir/lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename.log"
# Set RELEASE_TYPE # Set RELEASE_TYPE
echo ">> [$(date)] Setting \"$RELEASE_TYPE\" as release type" echo ">> [$(date)] Setting \"$RELEASE_TYPE\" as release type"