diff --git a/sunshine/process.cpp b/sunshine/process.cpp index 4e303440..00a83469 100644 --- a/sunshine/process.cpp +++ b/sunshine/process.cpp @@ -30,7 +30,7 @@ void process_end(bp::child &proc, const std::chrono::duration& rel_ } int exe(const std::string &cmd, bp::environment &env, file_t &file, std::error_code &ec) { - if(cmd.empty() || cmd == "null"sv) { + if(!file) { return bp::system(cmd, env, bp::std_out > bp::null, bp::std_err > bp::null, ec); }