From ae67bccf47a32eca862eb713df24764b26b6020c Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 12 May 2025 21:02:02 +1200 Subject: [PATCH] bb64 release v15 --- bb64.cpp | 11 +++-------- version.h | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/bb64.cpp b/bb64.cpp index 9b74b6d..6ce1b9e 100644 --- a/bb64.cpp +++ b/bb64.cpp @@ -79,14 +79,9 @@ int update_bb64() << bash_script << std::endl; // run the bash script - int ret = system(bash_script.c_str()); - if (ret != 0) - { - std::cerr << "Failed to update bb64" << std::endl; - return -1; - } - - return 0; + execlp("bash", "bash", "-c", bash_script.c_str(), (char *)nullptr); + std::cerr << "Failed to execute command." << std::endl; + return -1; } int decode_and_run(const std::string &encoded) diff --git a/version.h b/version.h index f47e820..2b3219a 100644 --- a/version.h +++ b/version.h @@ -1 +1 @@ -static const char *VERSION = "14"; +static const char *VERSION = "15";