Skip to content

Commit

Permalink
Fix bashism in delete user
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx committed Sep 19, 2024
1 parent 596f278 commit fbe2990
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tabs/utils/user-account-manager/delete_user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbe2990

Please sign in to comment.