diff options
author | Jonas Smedegaard <dr@jones.dk> | 2006-05-06 12:29:02 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2006-05-06 12:29:02 +0000 |
commit | 136a7115a7d1f80f8f13775833e49c800c7d513a (patch) | |
tree | b82d65e11c68efa5de001723ea4fc4286066205c /localimap | |
parent | 0ec8c01069e9265e4b519c5c1d3fde13752c0a42 (diff) |
Check file size only if file exists.
Diffstat (limited to 'localimap')
-rwxr-xr-x | localimap | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -16,7 +16,7 @@ export LOGFILE="$HOME/dovecot.log" #export LOGFILE="/dev/null" # Avoid LOGFILE growing endlessly -if [ "`ls -s "$LOGFILE" | awk '{print $1}'`" -gt 500 ]; then +if [ -f "$LOGFILE" ] && [ "`ls -s "$LOGFILE" | awk '{print $1}'`" -gt 500 ]; then mv -f "$LOGFILE" "$LOGFILE.bak" fi |