X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjo-overlay.git;a=blobdiff_plain;f=eclass%2Fsys-user.eclass;h=37c4d8719ac82cce8bec5a42b3f830c9ed5ba682;hp=6fb8f7ab17c96e289d5762ab109c0b5eb0c0c287;hb=42b11c0d223b3cbdd2a3878375b54bedd66fc46b;hpb=d2e688a09593fb99ba9c189a18494039fb9417f6 diff --git a/eclass/sys-user.eclass b/eclass/sys-user.eclass index 6fb8f7a..37c4d87 100644 --- a/eclass/sys-user.eclass +++ b/eclass/sys-user.eclass @@ -83,7 +83,7 @@ sys-user_getuid() { # Output the real UID of the given user, or the empty string if the # user does not exist on the system. [[ $# -eq 1 ]] || die "usage: sys-user_getuid " - echo $(id --real --user "${1}") + echo $(id --real --user "${1}" 2>/dev/null) } sys-user_getname() {