summaryrefslogtreecommitdiff
path: root/localimap
diff options
context:
space:
mode:
Diffstat (limited to 'localimap')
-rwxr-xr-xlocalimap2
1 files changed, 1 insertions, 1 deletions
diff --git a/localimap b/localimap
index 29babd5..9817d9e 100755
--- a/localimap
+++ b/localimap
@@ -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