Use more portable way of suppressing output

This commit is contained in:
Andrzej Rybczak
2020-12-18 00:03:54 +01:00
parent 25d7bb4d19
commit f266b2a5d4

View File

@@ -88,7 +88,7 @@ RunExternalCommand::RunExternalCommand(std::string &&command)
void RunExternalCommand::run()
{
GNUC_UNUSED int res;
res = std::system((m_command + " &>/dev/null").c_str());
res = std::system((m_command + " >/dev/null 2>&1").c_str());
}
}