Skip to content

Commit a058137

Browse files
authored
Merge pull request #52 from GyeongHoKim/fix/fetch-ffmpeg-sha-comment
fix(release): skip comment lines in ffmpeg.sha256 lookup
2 parents b7472fe + 2b39d5c commit a058137

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/fetch-ffmpeg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ case "${GOOS}_${GOARCH}" in
113113
;;
114114
esac
115115

116-
EXPECTED_SHA="$(awk -v key="${GOOS}_${GOARCH}" '$2 == key { print $1 }' "$SHA_FILE")"
116+
EXPECTED_SHA="$(awk -v key="${GOOS}_${GOARCH}" '$1 !~ /^#/ && $2 == key { print $1 }' "$SHA_FILE")"
117117
if [ -z "$EXPECTED_SHA" ]; then
118118
echo "no SHA-256 entry for ${GOOS}_${GOARCH} in $SHA_FILE" >&2
119119
echo " pin one before re-running:" >&2

0 commit comments

Comments
 (0)