From 22465ee36ba6c68e74ccdf6fc9f95b419a57b9b4 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 13 Feb 2008 01:41:51 +0000 Subject: Use here document for usage, and exit 0 when used. --- localmailtransportupdate | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'localmailtransportupdate') 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 # -# $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() { -- cgit v1.2.3