mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-29 21:32:44 +00:00
fixing format
This commit is contained in:
parent
ca9dd69820
commit
bbb51c42c3
46
acme.sh
46
acme.sh
@ -1865,33 +1865,33 @@ _mktemp() {
|
|||||||
# "https://[2001:420:2c7f:11:10:86:92:243]/acme/acme/authz/5B0PBcY4uSboiG7Pc19ltTjjsWCsqUay"],
|
# "https://[2001:420:2c7f:11:10:86:92:243]/acme/acme/authz/5B0PBcY4uSboiG7Pc19ltTjjsWCsqUay"],
|
||||||
# "finalize":"https://[2001:420:2c7f:11:10:86:92:243]/acme/acme/order/3LlSglOPQbnGgy0I1wMbnxSVJrHnDqT2/finalize"}'
|
# "finalize":"https://[2001:420:2c7f:11:10:86:92:243]/acme/acme/order/3LlSglOPQbnGgy0I1wMbnxSVJrHnDqT2/finalize"}'
|
||||||
_parse_authorizations() {
|
_parse_authorizations() {
|
||||||
awk '
|
awk '
|
||||||
BEGIN {
|
BEGIN {
|
||||||
FS = "";
|
FS = "";
|
||||||
inside = 0;
|
inside = 0;
|
||||||
match_found = 0
|
match_found = 0
|
||||||
}{
|
}{
|
||||||
for (i = 1; i <= NF; i++) {
|
for (i = 1; i <= NF; i++) {
|
||||||
if (substr($0, i, 16) == "\"authorizations\"") {
|
if (substr($0, i, 16) == "\"authorizations\"") {
|
||||||
match_found = 1
|
match_found = 1
|
||||||
}
|
|
||||||
if (match_found) {
|
|
||||||
if ($i == "[") {
|
|
||||||
inside++
|
|
||||||
}
|
}
|
||||||
if (inside > 0 && (inside > 1 || ($i != "[" && $i != "]"))) {
|
if (match_found) {
|
||||||
printf "%s", $i
|
if ($i == "[") {
|
||||||
}
|
inside++
|
||||||
if ($i == "]") {
|
}
|
||||||
inside--
|
if (inside > 0 && (inside > 1 || ($i != "[" && $i != "]"))) {
|
||||||
if (inside == 0) {
|
printf "%s", $i
|
||||||
print ""
|
}
|
||||||
match_found = 0
|
if ($i == "]") {
|
||||||
|
inside--
|
||||||
|
if (inside == 0) {
|
||||||
|
print ""
|
||||||
|
match_found = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}'
|
||||||
}'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#clear all the https envs to cause _inithttp() to run next time.
|
#clear all the https envs to cause _inithttp() to run next time.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user