Skip to content

Commit

Permalink
Fix bashism in remove from group
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx committed Sep 19, 2024
1 parent 596f278 commit ad619ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tabs/utils/user-account-manager/remove_from_group.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ checkGroupAvailabe "$groups" "$user_groups" || exit 1

groups_to_remove=$(echo "$groups" | tr ' ' ',')

read -p "Are you sure you want to remove user $username from $groups_to_remove? [Y/N]: " confirm
printf "Are you sure you want to remove user $username from $groups_to_remove? [Y/N]: "
read -r confirm
confirmAction || exit 1

$ESCALATION_TOOL usermod -rG $groups_to_remove "$username"
Expand Down

0 comments on commit ad619ee

Please sign in to comment.