summaryrefslogtreecommitdiffstats
path: root/ch
diff options
context:
space:
mode:
Diffstat (limited to 'ch')
-rwxr-xr-xch6
1 files changed, 6 insertions, 0 deletions
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() {