Browse Source

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.
pull/1551/head
Alex 8 years ago
committed by GitHub
parent
commit
55cae82cef
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      acme.sh

2
acme.sh

@ -4539,7 +4539,7 @@ list() {
_initpath "$d" "$_isEcc" _initpath "$d" "$_isEcc"
if [ -f "$DOMAIN_CONF" ]; then if [ -f "$DOMAIN_CONF" ]; then
. "$DOMAIN_CONF" . "$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 fi
) )
done done

Loading…
Cancel
Save