From 02d54a783a5844de89b5afc4d45ae9906d9b54c2 Mon Sep 17 00:00:00 2001 From: neilpang Date: Mon, 31 Oct 2016 21:12:11 +0800 Subject: [PATCH 1/2] fix for idn on solaris --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 0575e0b6..d4e75804 100755 --- a/acme.sh +++ b/acme.sh @@ -504,7 +504,7 @@ _createkey() { _is_idn() { _is_idn_d="$1" _debug2 _is_idn_d "$_is_idn_d" - _idn_temp=$(printf "%s" "$_is_idn_d" | tr -d "[0-9a-zA-Z.,-]") + _idn_temp=$(printf "%s" "$_is_idn_d" | tr -d '[0-9]' | tr -d '[a-z]' | tr -d 'A-Z' | tr -d '.,-') _debug2 _idn_temp "$_idn_temp" [ "$_idn_temp" ] } From 2a1e06f8a9d070b8e7d5a14a6a1e058bd4dd4280 Mon Sep 17 00:00:00 2001 From: neilpang Date: Mon, 31 Oct 2016 21:22:04 +0800 Subject: [PATCH 2/2] add --quiet for idn --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index d4e75804..bb773241 100755 --- a/acme.sh +++ b/acme.sh @@ -528,7 +528,7 @@ _idn() { else _i_first="" fi - idn "$f" | tr -d "\r\n" + idn --quiet "$f" | tr -d "\r\n" done else idn "$__idn_d" | tr -d "\r\n"