mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add missing ;;
This commit is contained in:
parent
38b8299d68
commit
186bb5d773
1 changed files with 5 additions and 3 deletions
|
@ -207,8 +207,10 @@ _user_management() {
|
|||
_DEFAULT="--default-item ${_NEXTITEM}"
|
||||
#shellcheck disable=SC2086
|
||||
if grep wheel "${_DESTDIR}"/etc/group | grep -q "${_USER}"; then
|
||||
_ADMIN_ATTR=1
|
||||
_USER_ATTR="| Administrator | wheel group"
|
||||
else
|
||||
_ADMIN_ATTR=""
|
||||
_USER_ATTR="| User | no wheel group"
|
||||
fi
|
||||
_dialog --title " Account ${_USER} ${_USER_ATTR} " --no-cancel ${_DEFAULT} --menu "" 11 60 5 \
|
||||
|
@ -229,13 +231,13 @@ _user_management() {
|
|||
sleep 2
|
||||
fi ;;
|
||||
"3") _NEXTITEM="3"
|
||||
if [[ "${_USER_ATTR}" == "| Administrator | wheel group" ]]; then
|
||||
if [[ -n "${_ADMIN_ATTR}" ]]; then
|
||||
usermod -R "${_DESTDIR}" -aG wheel "${_USER}"
|
||||
_dialog --title " Success " --no-mouse --infobox "User ${_USER} removed as Administrator and from wheel group." 3 60
|
||||
_dialog --title " Success " --no-mouse --infobox "User ${_USER} removed as Administrator and from wheel group." 3 70
|
||||
sleep 2
|
||||
else
|
||||
usermod -R "${_DESTDIR}" -rG wheel "${_USER}"
|
||||
_dialog --title " Success " --no-mouse --infobox "User ${_USER} added as Administrator and added to wheel group." 3 60
|
||||
_dialog --title " Success " --no-mouse --infobox "User ${_USER} added as Administrator and added to wheel group." 3 70
|
||||
sleep 2
|
||||
fi ;;
|
||||
"4") if _NEXTITEM="4"
|
||||
|
|
Loading…
Reference in a new issue