Refactor: move runCommand() to util.cpp
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user