grep for correct name

This commit is contained in:
Tobias Powalowski 2024-06-08 09:39:36 +02:00
parent 24d942f9f7
commit cbbcd2b30f

View file

@ -209,7 +209,7 @@ _user_management() {
while true; do while true; do
_DEFAULT="--default-item ${_NEXTITEM}" _DEFAULT="--default-item ${_NEXTITEM}"
#shellcheck disable=SC2086 #shellcheck disable=SC2086
if grep wheel "${_DESTDIR}"/etc/group | grep -q "${_USER}"; then if grep wheel "${_DESTDIR}"/etc/group | grep -qw "${_USER}"; then
_ADMIN_ATTR=1 _ADMIN_ATTR=1
_USER_TITLE="${_USER} | Administrator | wheel group" _USER_TITLE="${_USER} | Administrator | wheel group"
_USER_MENU="Change To Normal User" _USER_MENU="Change To Normal User"