[vcpkg] fix edit command on windows (#15767)

* [vcpkg] fix edit command on windows

* format
This commit is contained in:
nicole mazzuca 2021-01-19 19:42:00 -08:00 committed by GitHub
parent 3912524298
commit c977e3861d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,8 +263,8 @@ namespace vcpkg::Commands::Edit
if (editor_exe == "Code.exe" || editor_exe == "Code - Insiders.exe")
{
// note that we are invoking cmd silently but Code.exe is relaunched from there
System::cmd_execute_background(
System::Command("cmd").string_arg("/c").string_arg(cmd_line.command_line()).raw_arg("<NUL"));
System::cmd_execute_background(System::Command("cmd").string_arg("/c").raw_arg(
Strings::concat('"', cmd_line.command_line(), R"( <NUL")")));
Checks::exit_success(VCPKG_LINE_INFO);
}
#endif