about summary refs log tree commit diff stats
path: root/bin/makeuser
diff options
context:
space:
mode:
Diffstat (limited to 'bin/makeuser')
-rwxr-xr-xbin/makeuser2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/makeuser b/bin/makeuser
index 384333a..5ceeb0f 100755
--- a/bin/makeuser
+++ b/bin/makeuser
@@ -20,7 +20,7 @@ usage() {
 [[ $(id -u) != 0 ]] && error_exit "you must be the superuser to run this script."
 
 USERLIST=$(</etc/passwd cut -d ":" -f1)
-if [[ $USERLIST == *$1* ]]; then
+if [[ $USERLIST == $1* ]]; then
     error_exit "User already exists!"
 fi