From ebb13794fcd84d8175a4612165ac8bad900580cd Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Tue, 22 May 2012 17:26:20 +0100 Subject: [PATCH] Added "all" the list of invalid names. --- msm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msm b/msm index 491adef..28dc10f 100755 --- a/msm +++ b/msm @@ -63,11 +63,11 @@ echoerr() { # It must also not be one of a list of reserved names. is_valid_name() { local valid="^[a-zA-Z0-9\_\-]+$" - local invalid="^server|jargroup|start|stop|restart$" + local invalid="^server|jargroup|start|stop|restart|all$" if [[ "$1" =~ $valid ]]; then if [[ "$1" =~ $invalid ]]; then - echoerr "Invalid name \"$1\": A name may not be any of the following reserved worlds \"start\", \"stop\", \"restart\", \"server\" or \"jargroup\"." + echoerr "Invalid name \"$1\": A name may not be any of the following reserved worlds \"start\", \"stop\", \"restart\", \"server\", \"jargroup\" or \"all\"." return 1 else return 0