aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-23 23:10:59 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-05-23 23:10:59 -0400
commit429039d45d1af9cfda9e706d4ac8f1a144ed66d4 (patch)
treec04ac16d98ff31e50b4023cdbc9e9899651e2093 /src/util.cpp
parent8956453c0d4f5cff3186e1c9a8e6d8d74e3c7445 (diff)
Refactor: move runCommand() to util.cpp
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 08e3625b3d..3ab30baff6 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -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);
+}
+