summaryrefslogtreecommitdiff
path: root/localgotallmail
diff options
context:
space:
mode:
Diffstat (limited to 'localgotallmail')
-rwxr-xr-xlocalgotallmail4
1 files changed, 2 insertions, 2 deletions
diff --git a/localgotallmail b/localgotallmail
index a52bc03..6bce78c 100755
--- a/localgotallmail
+++ b/localgotallmail
@@ -22,8 +22,8 @@ if [ "$VERBOSE" ]; then
fi
for user in $USERS; do
- uid=`getent passwd $user | awk -F: '{print $3}' | head -1`
- HOME=`getent passwd $user | awk -F: '{print $6}' | head -1`
+ uid=`getent passwd $user | awk -F: '{print $3}' | head -n 1`
+ HOME=`getent passwd $user | awk -F: '{print $6}' | head -n 1`
if [ -z "$HOME" ]; then
echo "User $user doesn't exist. Ignoring..."
continue