riot: loosen username check as sometimes it's not a unix username

This commit is contained in:
xiongdian.me 2023-06-29 14:33:38 +08:00
parent 1a62ffe74b
commit bdb64ce1f2

View File

@ -14,7 +14,7 @@ check_port() {
# check if username valid
check_username() {
( echo $1 | grep -qxE "^[a-z][-a-z0-9_]*\$" ) || return 1
( echo $1 | grep -qxE "^[-.a-z0-9_]*\$" ) || return 1
return 0
}