]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Bugfixing
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 20 Mar 2019 15:08:53 +0000 (16:08 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 20 Mar 2019 15:08:53 +0000 (16:08 +0100)
sbin/cleanup-loghosts-hosts

index cda76540b033202e11032da679944a2a4870e61c..21283157366c04ac85c6dfc353c513f655265932 100755 (executable)
@@ -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}"