Merge branch '__git_fix_group_explorer' into 'master'

[__git] fix group explorer

See merge request ungleich-public/cdist!992
This commit is contained in:
poljakowski 2021-05-29 11:20:20 +02:00
commit d2ce55ea6e

View file

@ -14,6 +14,11 @@ then
then
printf '%u\n' "${group_gid}"
else
printf '%s\n' "$(id -u -n "${group_gid}")"
if command -v getent > /dev/null
then
getent group "${group_gid}" | cut -d : -f 1
else
awk -F: -v gid="${group_gid}" '$3 == gid { print $1 }' /etc/group
fi
fi
fi