summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-08-19 13:58:00 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-08-19 13:58:00 +0200
commit875df57f2bf02b5944dfab0f5e32507990d1f4bf (patch)
treec48ff5ffbd316039bdf4fb1455d1f93103b58918
parenteef187ebcdc72744fdc1af4b6ca4afb804dfda39 (diff)
downloadbin-875df57f2bf02b5944dfab0f5e32507990d1f4bf.tar.gz
bin-875df57f2bf02b5944dfab0f5e32507990d1f4bf.tar.xz
ch: Only compress logs once
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xch2
1 files changed, 1 insertions, 1 deletions
diff --git a/ch b/ch
index 9cbb137..21e2fc4 100755
--- a/ch
+++ b/ch
@@ -96,7 +96,7 @@ __chrootalias() {
__cleanup_logs() {
mkdir -p "$1/logs"
mv "$1/"*.log "$1/"*.log.* "$1/logs/"
- gzip -f "$1/logs/"*.log "$1/logs/"*.log.*
+ gzip -f "$1/logs/"*.log "$1/logs/"*.log.{1,2,3,4,5,6,7,8,9}
}
chkill() {