mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 14:59:03 +08:00
Use System::cmd_executeClean()
This commit is contained in:
parent
f2edc12561
commit
78ca952d76
@ -269,7 +269,7 @@ namespace vcpkg::Commands::Integrate
|
||||
// Using all forward slashes for the command line
|
||||
const std::wstring cmd_line = Strings::wformat(LR"("%s" pack -OutputDirectory "%s" "%s" > nul)", nuget_exe.native(), buildsystems_dir.native(), nuspec_file_path.native());
|
||||
|
||||
const int exit_code = System::cmd_execute(cmd_line);
|
||||
const int exit_code = System::cmd_execute_clean(cmd_line);
|
||||
|
||||
const fs::path nuget_package = buildsystems_dir / Strings::format("%s.%s.nupkg", nuget_id, nupkg_version);
|
||||
Checks::check_exit(exit_code == 0 && fs::exists(nuget_package), "Error: NuGet package creation failed");
|
||||
|
@ -417,6 +417,6 @@ true
|
||||
std::ofstream(vcpkg_metrics_txt_path) << payload;
|
||||
|
||||
const std::wstring cmdLine = Strings::wformat(L"start %s %s", temp_folder_path_exe.native(), vcpkg_metrics_txt_path.native());
|
||||
System::cmd_execute(cmdLine);
|
||||
System::cmd_execute_clean(cmdLine);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user