mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 07:37:01 +08:00
riot: loosen username check as sometimes it's not a unix username
This commit is contained in:
parent
fdc12393d9
commit
e8d3db4fbb
|
@ -33,7 +33,7 @@ get_server_meta() {
|
|||
if [[ "$remote" == *@* ]]; then
|
||||
RET_USERNAME=${remote%%@*}
|
||||
remote=${remote#*@}
|
||||
check_username $RET_USERNAME || fmt_fatal invalid username \"$RET_USERNAME\"
|
||||
check_username $RET_USERNAME || fmt_warning \"$RET_USERNAME\" is not a valid unix username
|
||||
fi
|
||||
# if in the form ...:22
|
||||
if [[ "$remote" == "["*"]":* || ( "$remote" != "["*"]" && "$remote" == *:* ) ]]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user