From 42b11c0d223b3cbdd2a3878375b54bedd66fc46b Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 29 Aug 2017 14:36:30 -0400 Subject: [PATCH] sys-user.eclass: hide stderr for "id" calls. --- eclass/sys-user.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.44.2