From 996e009ea22ae031348b9e5b263037ee08002e68 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 23 Oct 2006 21:44:09 +0000 Subject: Fix bashism (omit leading function declaration for functions). --- localmailtransportupdate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'localmailtransportupdate') diff --git a/localmailtransportupdate b/localmailtransportupdate index 474750c..44d271f 100755 --- a/localmailtransportupdate +++ b/localmailtransportupdate @@ -3,7 +3,7 @@ # /usr/local/sbin/localmailtransportinit # Copyright 2006 Jonas Smedegaard # -# $Id: localmailtransportupdate,v 1.3 2006-07-28 17:38:38 jonas Exp $ +# $Id: localmailtransportupdate,v 1.4 2006-10-23 21:44:09 jonas Exp $ # # Setup postfix transport map for a redpill organisation # @@ -16,7 +16,7 @@ TEMP=$(getopt -s sh -o r:fid:h -l redpill:,force,init,diffopts:,help -n "$PRG" - if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi eval set -- "$TEMP" -function usage() { +usage() { echo "Usage: $PRG [opts...] [redpill]" echo echo " -r, --redpill Redpill context" @@ -29,7 +29,7 @@ function usage() { exit 1 } -function exit1() { +exit1() { echo "Error: $1" echo "Exiting..." exit 1 -- cgit v1.2.3