Skip to content
Snippets Groups Projects
Commit 1145be89 authored by nimrod's avatar nimrod
Browse files

- Correct syntax error with AWK on OpenBSD.

parent 9c067072
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ unbundle_cert () { ...@@ -50,7 +50,7 @@ unbundle_cert () {
local certificate local certificate
mkdir -p certs mkdir -p certs
awk '/-----BEGIN[A-Z0-9 ]*CERTIFICATE-----/ {n++} \ awk '/-----BEGIN[A-Z0-9 ]*CERTIFICATE-----/ {n++} \
n > 0 {print > "certs/cert" (1+n)}' "$1" n > 0 {print > ("certs/cert" (1+n))}' "$1"
for certificate in certs/cert* for certificate in certs/cert*
do do
[ -f "$certificate" ] || continue [ -f "$certificate" ] || continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment