From: Michael Orlitzky Date: Tue, 29 Aug 2017 18:36:30 +0000 (-0400) Subject: sys-user.eclass: hide stderr for "id" calls. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=42b11c0d223b3cbdd2a3878375b54bedd66fc46b;p=mjo-overlay.git sys-user.eclass: hide stderr for "id" calls. --- 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() {