diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-05-24 11:54:05 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-05-24 11:54:05 +0100 |
commit | 3e97966c77fb8798ded73793119644faeec7c96b (patch) | |
tree | 953e595eb5f3cedb2dc1dd71fae2b375b667b853 | |
parent | b142f79f1ce7f6aed897146fc744a09d6ea3a3c0 (diff) | |
download | vcs-rebuild-3e97966c77fb8798ded73793119644faeec7c96b.tar.xz |
Save old logs under timestamp
-rwxr-xr-x | build-updated-packages.bash | 3 |
1 files changed, 2 insertions, 1 deletions
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 |