aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild-updated-packages.bash11
1 files 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