diff options
author | Jonas Smedegaard <dr@jones.dk> | 2006-01-12 17:06:23 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2006-01-12 17:06:23 +0000 |
commit | ee6c86126bdd4dd16b37fad1aab6cab17841ae26 (patch) | |
tree | daac999151d21a6dcf699c40755be1cf50812f88 /deluser.local | |
parent | 272bcb5d0c8fab88400f6ade292b122530e6facb (diff) |
Avoid unneeded keyword 'function' (unsupported in dash).
Diffstat (limited to 'deluser.local')
-rwxr-xr-x | deluser.local | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deluser.local b/deluser.local index d102988..2ae6a46 100755 --- a/deluser.local +++ b/deluser.local @@ -3,7 +3,7 @@ # /usr/local/sbin/deluser.local # Copyright 2001-2002 Jonas Smedegaard <dr@jones.dk> # -# $Id: deluser.local,v 1.17 2005-12-20 02:03:36 jonas Exp $ +# $Id: deluser.local,v 1.18 2006-01-12 17:06:23 jonas Exp $ # # Common deluser additions for Spiff and Xenux networks # @@ -15,11 +15,11 @@ OLDUID=$2 OLDGID=$3 OLDHOMEDIR=$4 -function fullname() { getent passwd $NEWUSERNAME | awk -F: '{print $5}' | awk -F, '{print $1}'; } -function maildomain() { if [ -r /etc/mailname ]; then head -n 1 /etc/mailname; fi; } +fullname() { getent passwd $NEWUSERNAME | awk -F: '{print $5}' | awk -F, '{print $1}'; } +maildomain() { if [ -r /etc/mailname ]; then head -n 1 /etc/mailname; fi; } -function listlists() { if [ -x /usr/sbin/list_lists ]; then /usr/sbin/list_lists -ab; fi; } -function delfromlist() { /bin/echo "$1" | /usr/sbin/remove_members -f - "$2"; } +listlists() { if [ -x /usr/sbin/list_lists ]; then /usr/sbin/list_lists -ab; fi; } +delfromlist() { /bin/echo "$1" | /usr/sbin/remove_members -f - "$2"; } . /etc/adduser.conf |