From c293917b6617e52bec6bfca625fbdf3ff8e55e08 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 30 Jun 2025 14:29:43 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/misc/tools.func b/misc/tools.func index 2ff0ba01..6253f0ab 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -1721,7 +1721,18 @@ function setup_ffmpeg() { args+=(--enable-libx265 --enable-libdav1d --enable-libsvtav1 --enable-zlib --enable-libnuma) fi - ./configure "${args[@]}" >/dev/null + if [[ ${#args[@]} -eq 0 ]]; then + msg_error "FFmpeg configure args array is empty – aborting." + rm -rf "$TMP_DIR" + return 1 + fi + + ./configure "${args[@]}" >"$TMP_DIR/configure.log" 2>&1 || { + msg_error "FFmpeg ./configure failed (see $TMP_DIR/configure.log)" + cat "$TMP_DIR/configure.log" | tail -n 20 + rm -rf "$TMP_DIR" + return 1 + } $STD make -j"$(nproc)" $STD make install