Use more portable way of suppressing output
This commit is contained in:
@@ -88,7 +88,7 @@ RunExternalCommand::RunExternalCommand(std::string &&command)
|
|||||||
void RunExternalCommand::run()
|
void RunExternalCommand::run()
|
||||||
{
|
{
|
||||||
GNUC_UNUSED int res;
|
GNUC_UNUSED int res;
|
||||||
res = std::system((m_command + " &>/dev/null").c_str());
|
res = std::system((m_command + " >/dev/null 2>&1").c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user