mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Fixed a bug which prevented valid server names containing a reserved world.
This commit is contained in:
parent
45ee034f2c
commit
e2d37a3c1c
2
init/msm
2
init/msm
@ -98,7 +98,7 @@ debug() {
|
||||
# It must also not be one of a list of reserved names.
|
||||
is_valid_name() {
|
||||
local valid="^[a-zA-Z0-9\_\-]+$"
|
||||
local invalid="^start|stop|restart|version|server|jargroup|all$"
|
||||
local invalid="^(start|stop|restart|version|server|jargroup|all)$"
|
||||
|
||||
if [[ "$1" =~ $valid ]]; then
|
||||
if [[ "$1" =~ $invalid ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user