Skip to content

Commit f9f15ba

Browse files
committed
General: don't suppress the output of preRun
Fix #1489
1 parent b282ac5 commit f9f15ba

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/options/general.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,7 @@ const char* ffOptionsParseGeneralJsonConfig(FFOptionsGeneral* options, yyjson_va
2424
options->processingTimeout = (int32_t) yyjson_get_int(val);
2525
else if (ffStrEqualsIgnCase(key, "preRun"))
2626
{
27-
FF_STRBUF_AUTO_DESTROY _ = ffStrbufCreate();
28-
const char* error = ffProcessAppendStdOut(&_, (char* const[]) {
29-
#ifdef _WIN32
30-
"cmd.exe", "/C",
31-
#else
32-
"/bin/sh", "-c",
33-
#endif
34-
(char*) yyjson_get_str(val), NULL
35-
});
36-
if (error)
27+
if (system(yyjson_get_str(val)) < 0)
3728
return "Failed to execute preRun command";
3829
}
3930
else if (ffStrEqualsIgnCase(key, "detectVersion"))

0 commit comments

Comments
 (0)