diff options
author | Simon Glass <sjg@chromium.org> | 2022-08-07 07:12:19 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-20 18:12:51 -0400 |
commit | cc0b36536b8ffe89293930934439c8148afa075c (patch) | |
tree | a132090bad0930c16938dedccf70f560ef48da9b | |
parent | 4b053019792d5c71f8b2e988c34c6352816c5aac (diff) |
arm: k3: Correct an awk warning
The k3_gen_x509_cert.sh script produced this warning on gitlab and also
on my machine, e.g. with j7200_evm_r5:
awk: cmd. line:1: warning: regexp escape sequence `\ ' is not a known
regexp operator
There is no need to escape spaces, so drop the backslashes. Also split
the line so it is a more reasonable length.
This script should really be deleted and binman used instead.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rwxr-xr-x | tools/k3_gen_x509_cert.sh | 5 |
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() { |