Refactor: move runCommand() to util.cpp

This commit is contained in:
Jeff Garzik
2012-05-23 23:10:59 -04:00
committed by Jeff Garzik
parent 8956453c0d
commit 429039d45d
3 changed files with 9 additions and 8 deletions

View File

@@ -1079,3 +1079,11 @@ boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate)
return fs::path("");
}
#endif
void runCommand(std::string strCommand)
{
int nErr = ::system(strCommand.c_str());
if (nErr)
printf("runCommand error: system(%s) returned %d\n", strCommand.c_str(), nErr);
}