summaryrefslogtreecommitdiffstats
path: root/ch
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-12-02 19:41:05 +0100
committerFlorian Pritz <bluewind@xinu.at>2014-12-02 19:41:05 +0100
commitdc08040a6f5ae47dd26b224167f4e5d225dcf6f6 (patch)
tree100a77f99558295866ae44b88ef3005ba589480d /ch
parent5fcf0a6b8e48fc95c8f890fe1dee2429960067fa (diff)
downloadbin-dc08040a6f5ae47dd26b224167f4e5d225dcf6f6.tar.gz
bin-dc08040a6f5ae47dd26b224167f4e5d225dcf6f6.tar.xz
ch: move log files to subdir
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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() {