Adjusted awk check
It turned out `exit` doesn't work as I thought it did.
This commit is contained in:
@@ -208,7 +208,7 @@ RUN set -x && \
|
||||
# Append software versions
|
||||
RUN set -x && \
|
||||
/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}" && \
|
||||
printf -- "ffmpeg_version = '%s'\n" "${FFMPEG_VERSION}" >> /app/common/third_party_versions.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user