diff --git a/tabs/utils/user-account-manager/remove_from_group.sh b/tabs/utils/user-account-manager/remove_from_group.sh index 4d3c65c37..c462e9d0b 100755 --- a/tabs/utils/user-account-manager/remove_from_group.sh +++ b/tabs/utils/user-account-manager/remove_from_group.sh @@ -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"