From 2e6fa7c8710c9532d2f5948433a7ff5cb459e763 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 11 Oct 2015 21:57:39 +0100 Subject: Redo logging --- build-updated-packages.bash | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build-updated-packages.bash b/build-updated-packages.bash index 7e741f4..7cd8b3c 100755 --- a/build-updated-packages.bash +++ b/build-updated-packages.bash @@ -64,8 +64,15 @@ main() { for package in "${needs_rebuild[@]}"; do (cd "$package" - sudo PKGDEST="$REPO_POOL" testing-x86_64-build -r ~/packaging/chroots -- -d /dev/fuse -- -c /var/cache/pacman/pkg &>> "$HOME"/packaging/logs/"$package".log - mv "$HOME"/packaging/logs/"$package".log "$HOME"/packaging/logs/"$package".log."$(date +%Y-%m-%dT%H:%M:%ST%z)") + sudo PKGDEST="$REPO_POOL" testing-x86_64-build -r ~/packaging/chroots -- -d /dev/fuse -- -c /var/cache/pacman/pkg >>/dev/null + + logdir="$HOME"/packaging/logs/"$package".log."$(date +%Y-%m-%dT%H:%M:%ST%z)" + mkdir "$logdir" + for file in *.log; do + if [[ "$file" = *.log ]]; then + mv "$file" "$logdir" + fi + done) done fi -- cgit v1.2.3-70-g09d2