From ad619ee96f598bc9181405932d9897258d9c3f51 Mon Sep 17 00:00:00 2001 From: nnyyxxxx Date: Thu, 19 Sep 2024 06:53:55 -0400 Subject: [PATCH] Fix bashism in remove from group --- tabs/utils/user-account-manager/remove_from_group.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"