Firmwarelist: use POSIX commandline option for awk

Use `-v` instead of `--assign`, which is only supported by gawk
This commit is contained in:
Roland Clobus 2024-12-16 13:53:21 +01:00
parent 137b8e2eed
commit 246556b123
No known key found for this signature in database
GPG Key ID: 62C57C6AA61495BD
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ Firmware_List_From_Contents () {
# Note: for firmware/Contents-firmware (used by check-missing-firmware.sh from hw-detect),
# the second argument must be the filename of the package.
# That information is not available here and will be added by installer_debian-installer
gunzip -c "${CONTENTS_FILE}" | awk --assign AREA=${_ARCHIVE_AREA} '/^(usr\/)?lib\/firmware/ { printf "/%-54s %s %s\n", $1, $2, AREA }' >> ${FIRMWARE_DETAILS_FILE}
gunzip -c "${CONTENTS_FILE}" | awk -v AREA=${_ARCHIVE_AREA} '/^(usr\/)?lib\/firmware/ { printf "/%-54s %s %s\n", $1, $2, AREA }' >> ${FIRMWARE_DETAILS_FILE}
fi
# Don't waste disk space, if not making use of caching