From 054f3a733bb66faa06212f5b0aa969685d246809 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 6 Feb 2017 22:08:37 +0000 Subject: [PATCH] etc/profile.d/mac.sh --- etc/profile.d/mac.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/profile.d/mac.sh b/etc/profile.d/mac.sh index 37754fe5..4e295630 100644 --- a/etc/profile.d/mac.sh +++ b/etc/profile.d/mac.sh @@ -242,7 +242,9 @@ mac_port_reinstall() { getent() { which getent && (eval "$(which getent) $@"; return) - [ "$1" != 'passwd' ] && echo "Support only passwd untill now" && return 1 + [ "$1" = 'group' -a -n "$2" ] && grep "^$1:" /etc/group && return + [ "$1" = 'group' ] && cat /etc/group && return + [ "$1" != 'passwd' ] && echo "Support only passwd and group untill now" && return 1 [ -z "$2" ] && (ls_users; return) ls_users | grep "^$2:" } -- 2.47.3