diff options
author | ahriman <ahriman@falte.red> | 2019-09-02 13:15:05 -0400 |
---|---|---|
committer | ahriman <ahriman@falte.red> | 2019-09-02 13:15:05 -0400 |
commit | 0962d66e6ca3f1267a184320f505e6cea868efbe (patch) | |
tree | 75074c5930c6127704c792e769ef293b45306503 /bin | |
parent | 2a8fa6d004f302704898745a44c59a8d033d6a6f (diff) | |
download | admin-0962d66e6ca3f1267a184320f505e6cea868efbe.tar.gz |
fixed false positive for extant user in makeuser
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/makeuser | 2 |
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 |