Adding late-replace envvar filenames to ATT

Change-Id: I5df51934ffa25358503013e1a230adb894d6ff94
This commit is contained in:
Giovanni LB authored and Giovanni Baraldi committed 2024-02-22 10:02:32 -05:00
1 bovenliggende a1999fa366
commit fe00badc6e
3 files changed
+43 -6

No files matched your search

+5 -2
Bestand weergeven
@@ -482,12 +482,15 @@ void plugins_load(void* userdata) {
else
plugin_name = "libcli_plugin.so";
}
env_var_replace("OUTPUT_PATH");
bool bIsATT = std::string_view(plugin_name) == "libatt_plugin.so";
if (!bIsATT)
env_var_replace("OUTPUT_PATH");
env_var_replace("OUT_FILE_NAME");
std::string out_path = getenv("OUTPUT_PATH") ? getenv("OUTPUT_PATH") : "";
if (out_path.size()) {
if (out_path.size() && !bIsATT) {
try {
std::experimental::filesystem::create_directories(out_path);
} catch (...) {