Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
be0df07d
Commit
be0df07d
authored
Sep 28, 2019
by
neilpang
Browse files
fix list() performance
https://github.com/Neilpang/acme.sh/issues/2296
parent
1ba4ab2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
be0df07d
...
@@ -4974,18 +4974,14 @@ list() {
...
@@ -4974,18 +4974,14 @@ list() {
if
[
"
$_raw
"
]
;
then
if
[
"
$_raw
"
]
;
then
printf
"%s
\n
"
"Main_Domain
${
_sep
}
KeyLength
${
_sep
}
SAN_Domains
${
_sep
}
Created
${
_sep
}
Renew"
printf
"%s
\n
"
"Main_Domain
${
_sep
}
KeyLength
${
_sep
}
SAN_Domains
${
_sep
}
Created
${
_sep
}
Renew"
for
di
in
"
${
CERT_HOME
}
"
/
*
.
*
/
;
do
for
di
in
"
${
CERT_HOME
}
"
/
*
.
*
/
;
do
if ! [ -d "$di" ]; then
_debug "Not directory, skip: $di"
continue
fi
d
=
$(
basename
"
$di
"
)
d
=
$(
basename
"
$di
"
)
_debug d
"
$d
"
_debug d
"
$d
"
(
(
if
_endswith
"
$d
"
"
$ECC_SUFFIX
"
;
then
if
_endswith
"
$d
"
"
$ECC_SUFFIX
"
;
then
_isEcc=
$(echo "$d" | cut -d "$ECC_SEP" -f 2)
_isEcc
=
"ecc"
d
=
$(
echo
"
$d
"
|
cut
-d
"
$ECC_SEP
"
-f
1
)
d
=
$(
echo
"
$d
"
|
cut
-d
"
$ECC_SEP
"
-f
1
)
fi
fi
_initpath "$d" "$_isEcc
"
DOMAIN_CONF
=
"
$di
/
$d
.conf
"
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
}
\"
$Le_Keylength
\"
${
_sep
}
$Le_Alt
${
_sep
}
$Le_CertCreateTimeStr
${
_sep
}
$Le_NextRenewTimeStr
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment