fix: Wrap `MAMBA_EXE` around double quotes in run shell script (#3673)

This commit is contained in:
Lucio Queiroz 2024-12-09 11:23:43 -05:00 committed by GitHub
parent f67914ef8a
commit ddc3d40b35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1510,7 +1510,7 @@ namespace mamba
{
// Micromamba hook
out << "export MAMBA_EXE=" << std::quoted(get_self_exe_path().string(), '\'') << "\n";
hook_quoted << "$MAMBA_EXE 'shell' 'hook' '-s' 'bash' '-r' "
hook_quoted << "\"$MAMBA_EXE\" 'shell' 'hook' '-s' 'bash' '-r' "
<< std::quoted(root_prefix.string(), '\'');
}
if (options.debug_wrapper_scripts)