From fe03fc3f075f3c8050dffdd3be92384c6c801b66 Mon Sep 17 00:00:00 2001 From: Pete Fotheringham Date: Thu, 3 Oct 2024 07:17:17 +0100 Subject: [PATCH] fix #694 set `DEBUG_LOG` as soon as we know `codename` --- src/new_build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/new_build.sh b/src/new_build.sh index ddc0c5a..33d24bb 100755 --- a/src/new_build.sh +++ b/src/new_build.sh @@ -234,6 +234,9 @@ for codename in ${devices//,/ }; do logsubdir= fi + # Set device specific logfils + DEBUG_LOG="$LOGS_DIR/$logsubdir/$branch-$builddate-$RELEASE_TYPE-$codename.log" + # `repo init` if [ "$CALL_REPO_INIT" = true ]; then 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="$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 echo ">> [$(date)] Setting \"$RELEASE_TYPE\" as release type"