[type/__pyvenv] Fix group explorer
This commit is contained in:
parent
defa3c22ea
commit
d596986af8
1 changed files with 6 additions and 1 deletions
|
@ -14,6 +14,11 @@ then
|
||||||
then
|
then
|
||||||
printf '%u\n' "${group_gid}"
|
printf '%u\n' "${group_gid}"
|
||||||
else
|
else
|
||||||
printf '%s\n' "$(id -u -n "${group_gid}")"
|
if command -v getent >/dev/null 2>&1
|
||||||
|
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
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue