From 29dfe4570d463545a19ea1a6ec3e4a1ae75de287 Mon Sep 17 00:00:00 2001 From: tcely Date: Sun, 24 Nov 2024 08:16:34 -0500 Subject: [PATCH] Used awk to check for correct ffmpeg output --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 130b54cc..9bc3272e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 | head -n 1 | awk '{ print $3 }') && \ + FFMPEG_VERSION=$(/usr/local/bin/ffmpeg -version | awk '1 == NR && "ffmpeg" == $1 { print $3; exit 0; } END { exit 1; }') && \ test -n "${FFMPEG_VERSION}" && \ printf -- "ffmpeg_version = '%s'\n" "${FFMPEG_VERSION}" >> /app/common/third_party_versions.py