mirror of
https://github.com/audacity/linuxdeploy.git
synced 2025-12-11 14:04:48 -06:00
Fix environment variable parsing
So far, the = sign was included in the value by accident.
This commit is contained in:
parent
697b27587a
commit
1ec9a59c91
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user