automated: touch the log symlinks when finished

This commit is contained in:
Jens Petersen 2026-02-18 20:15:49 +08:00
parent 129379baac
commit dee8c13e52
2 changed files with 2 additions and 0 deletions

View File

@ -6,4 +6,5 @@ git pull
LOG_FILE="$1-build-$(date -u +%F_%T).log"
ln -sf $LOG_FILE lts-build.log
time script -q -c "./build.sh $*" $LOG_FILE
touch -h $LOG_FILE
date

View File

@ -15,6 +15,7 @@ while true; do
fi
ln -sf $LOG_FILE nightly-build.log
time script -q -c "./build.sh nightly-$(date -u +%F) $cmd" $LOG_FILE
touch -h $LOG_FILE
${cmd:+exit 0}
${once:+date; exit 0}
echo "$0: run completed at $(date)"