From f9f15ba8449aab40afa19bf5b12103adee5f9c5f Mon Sep 17 00:00:00 2001 From: Carter Li Date: Wed, 8 Jan 2025 09:45:29 +0800 Subject: [PATCH] General: don't suppress the output of `preRun` Fix #1489 --- src/options/general.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/options/general.c b/src/options/general.c index 6f088256f..cff518f40 100644 --- a/src/options/general.c +++ b/src/options/general.c @@ -24,16 +24,7 @@ const char* ffOptionsParseGeneralJsonConfig(FFOptionsGeneral* options, yyjson_va options->processingTimeout = (int32_t) yyjson_get_int(val); else if (ffStrEqualsIgnCase(key, "preRun")) { - FF_STRBUF_AUTO_DESTROY _ = ffStrbufCreate(); - const char* error = ffProcessAppendStdOut(&_, (char* const[]) { - #ifdef _WIN32 - "cmd.exe", "/C", - #else - "/bin/sh", "-c", - #endif - (char*) yyjson_get_str(val), NULL - }); - if (error) + if (system(yyjson_get_str(val)) < 0) return "Failed to execute preRun command"; } else if (ffStrEqualsIgnCase(key, "detectVersion"))