diff options
Diffstat (limited to 'ch')
-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() { |