Skip to content

Commit bbb51c4

Browse files
authored
fixing format
1 parent ca9dd69 commit bbb51c4

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

acme.sh

+23-23
Original file line numberDiff line numberDiff line change
@@ -1865,33 +1865,33 @@ _mktemp() {
18651865
# "https://[2001:420:2c7f:11:10:86:92:243]/acme/acme/authz/5B0PBcY4uSboiG7Pc19ltTjjsWCsqUay"],
18661866
# "finalize":"https://[2001:420:2c7f:11:10:86:92:243]/acme/acme/order/3LlSglOPQbnGgy0I1wMbnxSVJrHnDqT2/finalize"}'
18671867
_parse_authorizations() {
1868-
awk '
1869-
BEGIN {
1870-
FS = "";
1871-
inside = 0;
1872-
match_found = 0
1873-
}{
1874-
for (i = 1; i <= NF; i++) {
1875-
if (substr($0, i, 16) == "\"authorizations\"") {
1876-
match_found = 1
1877-
}
1878-
if (match_found) {
1879-
if ($i == "[") {
1880-
inside++
1881-
}
1882-
if (inside > 0 && (inside > 1 || ($i != "[" && $i != "]"))) {
1883-
printf "%s", $i
1868+
awk '
1869+
BEGIN {
1870+
FS = "";
1871+
inside = 0;
1872+
match_found = 0
1873+
}{
1874+
for (i = 1; i <= NF; i++) {
1875+
if (substr($0, i, 16) == "\"authorizations\"") {
1876+
match_found = 1
18841877
}
1885-
if ($i == "]") {
1886-
inside--
1887-
if (inside == 0) {
1888-
print ""
1889-
match_found = 0
1878+
if (match_found) {
1879+
if ($i == "[") {
1880+
inside++
1881+
}
1882+
if (inside > 0 && (inside > 1 || ($i != "[" && $i != "]"))) {
1883+
printf "%s", $i
1884+
}
1885+
if ($i == "]") {
1886+
inside--
1887+
if (inside == 0) {
1888+
print ""
1889+
match_found = 0
1890+
}
18901891
}
18911892
}
18921893
}
1893-
}
1894-
}'
1894+
}'
18951895
}
18961896

18971897
#clear all the https envs to cause _inithttp() to run next time.

0 commit comments

Comments
 (0)