diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-12-02 19:41:05 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-12-02 19:41:05 +0100 |
commit | dc08040a6f5ae47dd26b224167f4e5d225dcf6f6 (patch) | |
tree | 100a77f99558295866ae44b88ef3005ba589480d | |
parent | 5fcf0a6b8e48fc95c8f890fe1dee2429960067fa (diff) | |
download | bin-dc08040a6f5ae47dd26b224167f4e5d225dcf6f6.tar.gz bin-dc08040a6f5ae47dd26b224167f4e5d225dcf6f6.tar.xz |
ch: move log files to subdir
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | ch | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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() { |