Skip to content

Commit

Permalink
Silencing grep call on /etc/passwd.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Jan 11, 2009
1 parent 24c4f35 commit e67156a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/live-bottom/10adduser
Expand Up @@ -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 ':')
Expand Down

0 comments on commit e67156a

Please sign in to comment.