summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/k3_gen_x509_cert.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/k3_gen_x509_cert.sh b/tools/k3_gen_x509_cert.sh
index 24cfc4e5fb5..029247c1059 100755
--- a/tools/k3_gen_x509_cert.sh
+++ b/tools/k3_gen_x509_cert.sh
@@ -88,7 +88,10 @@ EOF
}
parse_key() {
- sed '/\ \ \ \ /s/://g' key.txt | awk '!/\ \ \ \ / {printf("\n%s\n", $0)}; /\ \ \ \ / {printf("%s", $0)}' | sed 's/\ \ \ \ //g' | awk "/$1:/{getline; print}"
+ sed '/ /s/://g' key.txt | \
+ awk '!/ / {printf("\n%s\n", $0)}; / / {printf("%s", $0)}' | \
+ sed 's/ //g' | \
+ awk "/$1:/{getline; print}"
}
gen_degen_key() {