Skip to content

Commit

Permalink
General: don't suppress the output of preRun
Browse files Browse the repository at this point in the history
Fix #1489
  • Loading branch information
CarterLi committed Jan 8, 2025
1 parent b282ac5 commit f9f15ba
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/options/general.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit f9f15ba

Please sign in to comment.