forked from team/makeuser
Leave this as before
This commit is contained in:
parent
79e7cfb13f
commit
4f55bd736b
2
makeuser
2
makeuser
|
@ -15,7 +15,6 @@ CONFIG=./setenv
|
|||
source include/functions
|
||||
|
||||
[[ $(id -u) == 0 ]] && error_exit "Do not run this script as root."
|
||||
[[ $# -ne 3 ]] && error_exit "not enough args"
|
||||
|
||||
case $1 in
|
||||
-h | --help)
|
||||
|
@ -23,6 +22,7 @@ case $1 in
|
|||
-* | --*)
|
||||
usage; error_exit "unknown option $1" ;;
|
||||
*)
|
||||
[[ $# -ne 3 ]] && error_exit "not enough args"
|
||||
$(sudo grep -qiw $1 $BANNED) && error_exit "$1 is on the ban list!"
|
||||
|
||||
# username passed lowercased
|
||||
|
|
|
@ -14,7 +14,6 @@ CONFIG=./setenv
|
|||
source include/functions
|
||||
|
||||
[[ $(id -u) == 0 ]] && error_exit "Do not run this script as root."
|
||||
[[ $# -ne 3 ]] && error_exit "not enough args"
|
||||
|
||||
case $1 in
|
||||
-h | --help)
|
||||
|
@ -22,6 +21,7 @@ case $1 in
|
|||
-* | --*)
|
||||
usage; error_exit "unknown option $1" ;;
|
||||
*)
|
||||
[[ $# -ne 3 ]] && error_exit "not enough args"
|
||||
$(sudo grep -qiw $1 $BANNED) && error_exit "$1 is on the ban list!"
|
||||
|
||||
# username passed lowercased
|
||||
|
|
Loading…
Reference in New Issue