From fbe299005995727778ae25a9d538d95e58809880 Mon Sep 17 00:00:00 2001 From: nnyyxxxx Date: Thu, 19 Sep 2024 06:51:50 -0400 Subject: [PATCH] Fix bashism in delete user --- tabs/utils/user-account-manager/delete_user.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tabs/utils/user-account-manager/delete_user.sh b/tabs/utils/user-account-manager/delete_user.sh index cb68bdf91..ef1a59c49 100755 --- a/tabs/utils/user-account-manager/delete_user.sh +++ b/tabs/utils/user-account-manager/delete_user.sh @@ -17,7 +17,8 @@ if [ "$username" = "$USER" ]; then return fi -read -p "Are you sure you want to delete user $username? [Y/N]: " confirm +printf "Are you sure you want to delete user $username? [Y/N]: " +read -r confirm confirmAction || exit 1 $ESCALATION_TOOL userdel --remove "$username" 2>/dev/null