Skip to content

Commit

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

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

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

$ESCALATION_TOOL usermod -aG $groups_to_add "$username"
Expand Down

0 comments on commit 5691939

Please sign in to comment.