From 55cae82cefb4ac30554699ea1d0e02f68f331554 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 22 Apr 2018 09:04:23 -0400 Subject: [PATCH] Improve readability of list command When listing certificates, display the domain-key-length wrapped in double quotes if it is explicitly set, or the default domain-key-length wrapped in square brackets if it is not. --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index e7a30d91..63181c08 100755 --- a/acme.sh +++ b/acme.sh @@ -4539,7 +4539,7 @@ list() { _initpath "$d" "$_isEcc" if [ -f "$DOMAIN_CONF" ]; then . "$DOMAIN_CONF" - printf "%s\n" "$Le_Domain${_sep}\"$Le_Keylength\"${_sep}$Le_Alt${_sep}$Le_CertCreateTimeStr${_sep}$Le_NextRenewTimeStr" + printf "%s\n" "$Le_Domain${_sep}$(if [ -z "$Le_Keylength" ]; then echo "[$DEFAULT_DOMAIN_KEY_LENGTH]"; else echo "\"$Le_Keylength\""; fi)${_sep}$Le_Alt${_sep}$Le_CertCreateTimeStr${_sep}$Le_NextRenewTimeStr" fi ) done