summaryrefslogtreecommitdiff
path: root/localmb2md
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-08-20 20:36:04 +0000
committerJonas Smedegaard <dr@jones.dk>2006-08-20 20:36:04 +0000
commit05dbeac2a51c997f4e8837ce5597829d46e59dff (patch)
tree61dde3f34dd5a38132317c5457bf20b4c5b30a72 /localmb2md
parentb87b92a1695f2ca7a77ac8b1bcf7c440c919aaad (diff)
Use $HOME unexpanded. Use grep -x (not egrep).
Diffstat (limited to 'localmb2md')
-rwxr-xr-xlocalmb2md6
1 files changed, 3 insertions, 3 deletions
diff --git a/localmb2md b/localmb2md
index ace50b5..b2872fd 100755
--- a/localmb2md
+++ b/localmb2md
@@ -3,7 +3,7 @@
# /usr/local/sbin/adduser.local
# Copyright 2005-2006 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localmb2md,v 1.9 2006-08-06 19:10:10 jonas Exp $
+# $Id: localmb2md,v 1.10 2006-08-20 20:36:04 jonas Exp $
#
# Convert user account from mailboxes below /var/mail/ and ~/mail/ to
# maildirs below ~/Maildir/ .
@@ -43,12 +43,12 @@ done
# Bail out if custom procmailrc is in the way
if [ -n "$mkprocmailrc" ] && [ -f ~/.procmailrc ]; then
- if egrep -v -q '^DEFAULT=\$HOME/Maildir/$' ~/.procmailrc; then
+ if ! grep -q -x 'DEFAULT=\$HOME/Maildir/' ~/.procmailrc; then
cat <<EOF
ERROR: non-Maildir-aware ~/.procmailrc exists already.
Please edit manually to include the following line:
- DEFAULT=$HOME/Maildir/
+ DEFAULT=\$HOME/Maildir/
Make sure other rules use Maildirs too, if needed.
EOF