bb64 release v15
This commit is contained in:
parent
61b61ca93d
commit
ae67bccf47
9
bb64.cpp
9
bb64.cpp
@ -79,14 +79,9 @@ int update_bb64()
|
|||||||
<< bash_script << std::endl;
|
<< bash_script << std::endl;
|
||||||
|
|
||||||
// run the bash script
|
// run the bash script
|
||||||
int ret = system(bash_script.c_str());
|
execlp("bash", "bash", "-c", bash_script.c_str(), (char *)nullptr);
|
||||||
if (ret != 0)
|
std::cerr << "Failed to execute command." << std::endl;
|
||||||
{
|
|
||||||
std::cerr << "Failed to update bb64" << std::endl;
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int decode_and_run(const std::string &encoded)
|
int decode_and_run(const std::string &encoded)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user