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>
Wed, 9 Mar 2011 16:48:03 +0000 (17:48 +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 ':')