env: Avoid using GNU features in awk
authorSimon Glass <sjg@chromium.org>
Wed, 24 Nov 2021 14:40:14 +0000 (07:40 -0700)
committerSimon Glass <sjg@chromium.org>
Sun, 28 Nov 2021 23:51:51 +0000 (16:51 -0700)
commit7acb322568317197d0ea9f1fb6fcf5975b9d8500
treef765597185b24703c6be91dfe37875967e9d319a
parent1943f2a2a7c58b76812fcad2d3012036af7464ce
env: Avoid using GNU features in awk

GNU has a very useful third argument to match() but this is not supported
in the POSIX awk.

Update the code to cope, so that the script is POSIX-compliant.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Mark Kettenis <mark.kettenis@xs4all.nl>
scripts/env2string.awk