stackage/automated/run-lts.sh
2026-02-23 17:35:27 +08:00

14 lines
291 B
Bash
Executable File

#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")"
git pull
LOG_FILE="logs/$1-build-$(date -u +%F+%T).log"
if [ -L $1-build.log ]; then
mv -f $1-build.log $1-build-previous.log
fi
ln -sf $LOG_FILE lts-build.log
time script -c "./build.sh $*" $LOG_FILE
touch -h lts-build.log
date