]> gitweb.michael.orlitzky.com - mjo-overlay.git/commitdiff
sys-user.eclass: hide stderr for "id" calls.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 29 Aug 2017 18:36:30 +0000 (14:36 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 29 Aug 2017 18:36:30 +0000 (14:36 -0400)
eclass/sys-user.eclass

index 6fb8f7ab17c96e289d5762ab109c0b5eb0c0c287..37c4d8719ac82cce8bec5a42b3f830c9ed5ba682 100644 (file)
@@ -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 <username>"
-       echo $(id --real --user "${1}")
+       echo $(id --real --user "${1}" 2>/dev/null)
 }
 
 sys-user_getname() {