about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorahriman <ahriman@falte.red>2019-09-02 13:15:05 -0400
committerahriman <ahriman@falte.red>2019-09-02 13:15:05 -0400
commit0962d66e6ca3f1267a184320f505e6cea868efbe (patch)
tree75074c5930c6127704c792e769ef293b45306503
parent2a8fa6d004f302704898745a44c59a8d033d6a6f (diff)
downloadadmin-0962d66e6ca3f1267a184320f505e6cea868efbe.tar.gz
fixed false positive for extant user in 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