Adjusted awk check

It turned out `exit` doesn't work as I thought it did.
This commit is contained in:
tcely
2024-11-25 17:00:31 -05:00
committed by GitHub
parent 6c7c1c6510
commit 8f9bb782a7

View File

@@ -208,7 +208,7 @@ RUN set -x && \
# Append software versions # Append software versions
RUN set -x && \ RUN set -x && \
/usr/local/bin/ffmpeg -version && \ /usr/local/bin/ffmpeg -version && \
FFMPEG_VERSION=$(/usr/local/bin/ffmpeg -version | awk '1 == NR && "ffmpeg" == $1 { print $3; exit 0; } END { exit 1; }') && \ FFMPEG_VERSION=$(/usr/local/bin/ffmpeg -version | awk -v 'ev=31' '1 == NR && "ffmpeg" == $1 { print $3; ev=0; } END { exit ev; }') && \
test -n "${FFMPEG_VERSION}" && \ test -n "${FFMPEG_VERSION}" && \
printf -- "ffmpeg_version = '%s'\n" "${FFMPEG_VERSION}" >> /app/common/third_party_versions.py printf -- "ffmpeg_version = '%s'\n" "${FFMPEG_VERSION}" >> /app/common/third_party_versions.py