Fix environment variable parsing

So far, the = sign was included in the value by accident.
This commit is contained in:
TheAssassin 2022-07-19 13:02:41 +02:00
parent 697b27587a
commit 1ec9a59c91

View File

@ -16,7 +16,7 @@ namespace linuxdeploy::subprocess {
std::string current_env_var_str(*current_env_var);
const auto first_eq = current_env_var_str.find_first_of('=');
const auto env_var_name = current_env_var_str.substr(0, first_eq);
const auto env_var_value = current_env_var_str.substr(first_eq);
const auto env_var_value = current_env_var_str.substr(first_eq + 1);
result[env_var_name] = env_var_value;
}
}