Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
0ab2cfaf
Unverified
Commit
0ab2cfaf
authored
Jul 08, 2020
by
neil
Committed by
GitHub
Jul 08, 2020
Browse files
Merge pull request #3029 from licaon-kter/patch-2
Fix typo candindates
parents
0545d6f0
dbc43550
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
0ab2cfaf
...
...
@@ -4122,17 +4122,17 @@ $_authorizations_map"
if [ "$ACME_VERSION" = "2" ]; then
_idn_d="$(_idn "$d")"
_candi
n
dates
=
"
$(
echo
"
$_authorizations_map
"
|
grep
-i
"^
$_idn_d
,"
)
"
_debug2 _candi
n
dates
"
$_candi
n
dates
"
if
[
"
$(
echo
"
$_candi
n
dates
"
|
wc
-l
)
"
-gt
1
]
;
then
for
_can
in
$_candi
n
dates
;
do
_candidates="$(echo "$_authorizations_map" | grep -i "^$_idn_d,")"
_debug2 _candidates "$_candidates"
if [ "$(echo "$_candidates" | wc -l)" -gt 1 ]; then
for _can in $_candidates; do
if _startswith "$(echo "$_can" | tr '.' '|')" "$(echo "$_idn_d" | tr '.' '|'),"; then
_candi
n
dates
=
"
$_can
"
_candidates="$_can"
break
fi
done
fi
response
=
"
$(
echo
"
$_candi
n
dates
"
|
sed
"s/
$_idn_d
,//"
)
"
response="$(echo "$_candidates" | sed "s/$_idn_d,//")"
_debug2 "response" "$response"
if [ -z "$response" ]; then
_err "get to authz error."
...
...
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