summaryrefslogtreecommitdiff
path: root/localmailtransportupdate
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-02-13 01:41:51 +0000
committerJonas Smedegaard <dr@jones.dk>2008-02-13 01:41:51 +0000
commit22465ee36ba6c68e74ccdf6fc9f95b419a57b9b4 (patch)
tree6231be1374615112f940175a25385ce26b40b7ac /localmailtransportupdate
parent31a2f897cfd72618879f348b9c6c63b6f317d2c5 (diff)
Use here document for usage, and exit 0 when used.
Diffstat (limited to 'localmailtransportupdate')
-rwxr-xr-xlocalmailtransportupdate24
1 files changed, 13 insertions, 11 deletions
diff --git a/localmailtransportupdate b/localmailtransportupdate
index e3676b4..e07e8a6 100755
--- a/localmailtransportupdate
+++ b/localmailtransportupdate
@@ -3,7 +3,7 @@
# /usr/local/sbin/localmailtransportinit
# Copyright 2006 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localmailtransportupdate,v 1.9 2007-07-14 13:16:54 jonas Exp $
+# $Id: localmailtransportupdate,v 1.10 2008-02-13 01:41:51 jonas Exp $
#
# Setup postfix transport map for a redpill organisation
#
@@ -17,16 +17,18 @@ if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
eval set -- "$TEMP"
usage() {
- echo >&2 "Usage: $PRG [opts...] [redpill]"
- echo >&2
- echo >&2 " -r, --redpill Redpill context"
- echo >&2 " (default: read /etc/local-ORG/redpill)"
- echo >&2 " -f, --force Update without asking for confirmation"
- echo >&2 " -i, --init Setup postfix to use the transport map"
- echo >&2 " -d, --diffopts=diffopts Extra options applied to diff when"
- echo >&2 " comparing current and new map"
- echo >&2 " -h|--help This help text"
- exit 1
+ cat <<'EOF' >&2
+Usage: $PRG [opts...] [redpill]
+
+ -r, --redpill Redpill context
+ (default: read /etc/local-ORG/redpill)
+ -f, --force Update without asking for confirmation
+ -i, --init Setup postfix to use the transport map
+ -d, --diffopts=diffopts Extra options applied to diff when
+ comparing current and new map
+ -h|--help This help text
+EOF
+ exit 0
}
exit1() {