From dc08040a6f5ae47dd26b224167f4e5d225dcf6f6 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 2 Dec 2014 19:41:05 +0100 Subject: ch: move log files to subdir Signed-off-by: Florian Pritz --- ch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ch b/ch index d579345..cd87bc4 100755 --- a/ch +++ b/ch @@ -81,6 +81,11 @@ __chrootalias() { fi } +__cleanup_logs() { + mkdir -p "$1/logs" + mv "$1/"*.log "$1/logs" +} + chkill() { if [[ $1 = all ]]; then for chrootdir in "$CHROOTS/"*/; do @@ -106,6 +111,7 @@ chbuild() { __chrootalias "$1" || return linux${chroot_arch} sudo makechrootpkg -l "${copydir##*/}" -r "$chrootdir" -n -- -f "${@:2}" chshell "$1" pacman --noconfirm -Rcs namcap + __cleanup_logs "$PWD" } chinstall() { -- cgit v1.2.3-24-g4f1b