1
0
mirror of https://github.com/Luzifer/archrepo.git synced 2024-09-19 10:42:57 +00:00

Fix: Do not print logs, just put them to file

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2024-06-29 21:51:51 +02:00
parent 6f0c927c8d
commit a8038f9a3a
Signed by: luzifer
SSH Key Fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View File

@ -85,7 +85,7 @@ function update() {
local exitcode=$(docker inspect ${container} | jq -r '.[0].State.ExitCode')
if [ $exitcode -gt 0 ]; then
local logfile="/tmp/arch-package-build_$(basename ${repo}).log"
docker logs ${container} 2>&1 >${logfile}
docker logs ${container} >${logfile} 2>&1
write_status FAIL ${repo} "Build failed (${exitcode}), see logs at ${logfile}"
else
write_status SUCCESS ${repo} "Updating cache entry..."