Test the output for FFMPEG_VERSION exists

The shell used on the build system doesn't support `pipefail` so test for output instead.

It might be incorrect output, but in combination with running the `ffmpeg` binary earlier, this should be enough.
This commit is contained in:
tcely
2024-11-24 07:13:19 -05:00
committed by GitHub
parent f4a88cf7fa
commit a921adedc0

View File

@@ -208,7 +208,8 @@ 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=$(set -o pipefail ; /usr/local/bin/ffmpeg -version | head -n 1 | awk '{ print $3 }' || exit) && \ FFMPEG_VERSION=$(/usr/local/bin/ffmpeg -version | head -n 1 | awk '{ print $3 }') && \
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
# Copy root # Copy root