automated fixup: touch the symlink not the log file!

This commit is contained in:
Jens Petersen 2026-02-18 21:29:11 +08:00
parent cdb1eb7e78
commit 3fb5ae5605
2 changed files with 2 additions and 2 deletions

View File

@ -6,5 +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
touch -h lts-build.log
date

View File

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