File tree 1 file changed +23
-23
lines changed
1 file changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -1865,33 +1865,33 @@ _mktemp() {
1865
1865
# "https://[2001:420:2c7f:11:10:86:92:243]/acme/acme/authz/5B0PBcY4uSboiG7Pc19ltTjjsWCsqUay"],
1866
1866
# "finalize":"https://[2001:420:2c7f:11:10:86:92:243]/acme/acme/order/3LlSglOPQbnGgy0I1wMbnxSVJrHnDqT2/finalize"}'
1867
1867
_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
1884
1877
}
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
+ }
1890
1891
}
1891
1892
}
1892
1893
}
1893
- }
1894
- }'
1894
+ }'
1895
1895
}
1896
1896
1897
1897
# clear all the https envs to cause _inithttp() to run next time.
You can’t perform that action at this time.
0 commit comments