summaryrefslogtreecommitdiff
path: root/deluser.local
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-07-16 12:33:59 +0000
committerJonas Smedegaard <dr@jones.dk>2006-07-16 12:33:59 +0000
commit78d646b8b6ad3ff09d3ef6539b4533a8e84c0fcc (patch)
treec67beb1ee70f8fb91ac26fd64def08e0b6595130 /deluser.local
parent4dce2f2db4252fb55dce4b1e2dd99eb89294f91a (diff)
Change head -1 -> head -n 1
Diffstat (limited to 'deluser.local')
-rwxr-xr-xdeluser.local6
1 files changed, 3 insertions, 3 deletions
diff --git a/deluser.local b/deluser.local
index 9f5ac3c..713c7f3 100755
--- a/deluser.local
+++ b/deluser.local
@@ -1,9 +1,9 @@
#!/bin/sh
#
# /usr/local/sbin/deluser.local
-# Copyright 2001-2002 Jonas Smedegaard <dr@jones.dk>
+# Copyright 2001-2006 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: deluser.local,v 1.20 2006-01-12 23:38:45 jonas Exp $
+# $Id: deluser.local,v 1.21 2006-07-16 12:34:00 jonas Exp $
#
# Common deluser additions for Spiff and Xenux networks
#
@@ -25,7 +25,7 @@ delfromlist() { /bin/echo "$1" | /usr/sbin/remove_members -f - "$2"; }
#. /etc/deluser.conf
# Workaround: default deluser.conf is not sh-compatible (like adduser.conf)
-REMOVE_HOME=`grep REMOVE_HOME /etc/deluser.conf | awk -F= '{print $2}' | head -1 | sed 's/^ //g'`
+REMOVE_HOME=`grep REMOVE_HOME /etc/deluser.conf | awk -F= '{print $2}' | head -n 1 | sed 's/^ //g'`
# Ignore non-human accounts silently
[ "$OLDUID" -ge "$FIRST_UID" -a "$OLDUID" -le "$LAST_UID" ] || exit 0