Skip to content
This repository was archived by the owner on Jan 18, 2026. It is now read-only.

Commit 212816a

Browse files
committed
Fix username check
1 parent a86f7b6 commit 212816a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/configure_user.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ set_user() {
4444
dialog --ok-button "$ok" --msgbox "\n$user_err_msg2" 10 60
4545
elif (grep "^$user:" "$tmp_passwd" &>/dev/null); then
4646
dialog --ok-button "$ok" --msgbox "\n$user_err_msg1" 10 60
47-
elif (<<<"$user" grep "^[0-9]\|[A-Z\[\$\!\'\"\`\\|%&#@()_-+=<>~;:/?.,^{}]\|]" &> /dev/null); then
47+
elif (<<<"$user" grep "^[0-9]\|[A-Z]\|[]:/?#@\!\$&'()*+,;=%[]" &> /dev/null); then
4848
dialog --ok-button "$ok" --msgbox "\n$user_err_msg" 10 60
4949
else
5050
while (true)

0 commit comments

Comments
 (0)