Silencing grep call on /etc/passwd.
authorDaniel Baumann <daniel@debian.org>
Sat, 10 Jan 2009 21:01:06 +0000 (22:01 +0100)
committerDaniel Baumann <daniel@debian.org>
Sun, 11 Jan 2009 14:50:41 +0000 (15:50 +0100)
scripts/live-bottom/10adduser

index 4c0fe80..9295070 100755 (executable)
@@ -58,7 +58,7 @@ set passwd/username
 set passwd/user-uid
 EOF
 
-if ! grep "${USERNAME}" /root/etc/passwd
+if ! grep -qs "${USERNAME}" /root/etc/passwd
 then
        echo "The default user (${USERNAME}) is not present,"
        first_user=$(grep '^[^:]*:[^:]*:[12]\?[0-9][0-9][0-9][0-9]:' /root/etc/passwd | head -1 | cut -f1 -d ':')