From e532fcdcde0b775c4bc95986e48296b04162a25b Mon Sep 17 00:00:00 2001 From: melancn Date: Tue, 17 Jan 2017 16:41:48 +0800 Subject: [PATCH] error in add more domain --- acme.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/acme.sh b/acme.sh index 6eace3fd..19d3d53a 100755 --- a/acme.sh +++ b/acme.sh @@ -4170,6 +4170,13 @@ _process() { _err "'$_dvalue' is not a valid domain for parameter '$1'" return 1 fi + + _sepexis=$(echo $_dvalue | grep ",") + if [ _sepexis ]; then + _err "'$_dvalue' is not a valid domain for parameter '$1', please use more command to add domains" + return 1 + fi + if _is_idn "$_dvalue" && ! _exists idn; then _err "It seems that $_dvalue is an IDN( Internationalized Domain Names), please install 'idn' command first." return 1