Use more portable way of suppressing output

master
Andrzej Rybczak 5 years ago
parent 25d7bb4d19
commit f266b2a5d4
  1. 2
      src/macro_utilities.cpp

@ -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());
} }
} }

Loading…
Cancel
Save