From 5691939a47fea1ad23be00271603df9401e7b499 Mon Sep 17 00:00:00 2001 From: nnyyxxxx Date: Thu, 19 Sep 2024 06:56:39 -0400 Subject: [PATCH] Fix bashism in add to group --- tabs/utils/user-account-manager/add_to_group.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tabs/utils/user-account-manager/add_to_group.sh b/tabs/utils/user-account-manager/add_to_group.sh index dd8a2a743..8ef22c20e 100755 --- a/tabs/utils/user-account-manager/add_to_group.sh +++ b/tabs/utils/user-account-manager/add_to_group.sh @@ -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"