From 37c628bdef9a86809cda63c8f6261dcfb8f7d22b Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 20 Mar 2019 16:08:53 +0100 Subject: [PATCH] Bugfixing --- sbin/cleanup-loghosts-hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/cleanup-loghosts-hosts b/sbin/cleanup-loghosts-hosts index cda7654..2128315 100755 --- a/sbin/cleanup-loghosts-hosts +++ b/sbin/cleanup-loghosts-hosts @@ -226,7 +226,7 @@ compress_old_files() { echo "[$( my_date )]: Compressing files older than ${MIN_AGE_COMPRESS} days:" for fname in $( find "${HOSTS_DIR}" -type f -size +50c -mtime +${MIN_AGE_COMPRESS} | \ egrep -vi '\.(gz|bz2)$' | head -n 10000 ) ; do - if [[ -f "${fname}" && ]] ; then + if [[ -f "${fname}" ]] ; then echo " * '${fname}'" ls -l "${fname}" gzip -9 "${fname}" -- 2.39.5