diff options
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 |