Add check curl in system #1
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
#include "AccountStatus.hpp"
|
#include "AccountStatus.hpp"
|
||||||
#include "AccountUpdate.hpp"
|
#include "AccountUpdate.hpp"
|
||||||
#include "Deals.hpp"
|
#include "Deals.hpp"
|
||||||
|
#include "ExecCommand.hpp"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
char** global_argv;
|
char** global_argv;
|
||||||
@@ -28,8 +29,17 @@ bool IsRuLang()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
int r = system("curl");
|
||||||
|
if (r == 2) {
|
||||||
|
//OK
|
||||||
|
}
|
||||||
|
else if (r == 1) {
|
||||||
|
cout << "curl: not found" << endl;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
global_argv = argv;
|
global_argv = argv;
|
||||||
global_argc = argc;
|
global_argc = argc;
|
||||||
InputParser input(argc, argv);
|
InputParser input(argc, argv);
|
||||||
|
|||||||
Reference in New Issue
Block a user