From 3e97966c77fb8798ded73793119644faeec7c96b Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 24 May 2015 11:54:05 +0100 Subject: Save old logs under timestamp --- build-updated-packages.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-updated-packages.bash b/build-updated-packages.bash index 57ebfc0..3ca8739 100755 --- a/build-updated-packages.bash +++ b/build-updated-packages.bash @@ -64,7 +64,8 @@ main() { for package in "${needs_rebuild[@]}"; do (cd "$package" - sudo PKGDEST="$REPO_POOL" testing-x86_64-build -r ~/packaging/chroots -- -c /var/cache/pacman/pkg &>> "$HOME"/packaging/logs/"$package".log) + sudo PKGDEST="$REPO_POOL" testing-x86_64-build -r ~/packaging/chroots -- -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)") done fi -- cgit v1.2.3-70-g09d2