diff --git a/bash_profile b/bash_profile index 03e62de..540201f 100644 --- a/bash_profile +++ b/bash_profile @@ -119,7 +119,7 @@ select yn in "Yes" "No"; do echo -e ${red}" Blank username entered. Try again!!!"${txtrst} echo -en "\033[1A\033[1A\033[2K" username="" - elif grep -q "$username" /etc/passwd; then + elif grep -q "^$username" /etc/passwd; then echo -e ${red}"Username already exists. Try again!!!"${txtrst} echo -en "\033[1A\033[1A\033[2K" username=""