Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit c2dd1a3

Browse files
committed
Fix username check
1 parent 2c454d3 commit c2dd1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_profile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ select yn in "Yes" "No"; do
122122
echo -e ${red}" Blank username entered. Try again!!!"${txtrst}
123123
echo -en "\033[1A\033[1A\033[2K"
124124
username=""
125-
elif grep -q "$username" /etc/passwd; then
125+
elif grep -q "^$username" /etc/passwd; then
126126
echo -e ${red}"Username already exists. Try again!!!"${txtrst}
127127
echo -en "\033[1A\033[1A\033[2K"
128128
username=""

0 commit comments

Comments
 (0)