Skip to content

Commit

Permalink
generate-cab-files: FILENAME is a reserved variable
Browse files Browse the repository at this point in the history
awk uses FILENAME for the file it is processing
  • Loading branch information
DylanVanAssche authored and amartinz committed Sep 3, 2022
1 parent e9ba2d4 commit 1942a26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate-cab-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ SHA256=($(sha256sum "${OUTPUT_DIRECTORY}/${OUTPUT_IMAGE_FILE}"))

# Generate final metainfo file
awk \
-v FILENAME="${IMAGE_NAME}.img" \
-v IMAGE_FILE="${OUTPUT_IMAGE_FILE}" \
-v VERSION="${IMAGE_VERSION}" \
-v DATE="${IMAGE_DATE}" \
-v SHA1="${SHA1}" \
-v SHA256="${SHA256}" \
-v DESCRIPTION="${IMAGE_DESCRIPTION}" '{
sub(/SCRIPT_MARKER_FILENAME/, FILENAME);
sub(/SCRIPT_MARKER_FILENAME/, IMAGE_FILE);
sub(/SCRIPT_MARKER_VERSION/, VERSION);
sub(/SCRIPT_MARKER_DATE/, DATE);
sub(/SCRIPT_MARKER_SHA1/, SHA1);
Expand Down

0 comments on commit 1942a26

Please sign in to comment.