Use System::cmd_executeClean()

This commit is contained in:
Alexander Karatarakis 2017-03-10 17:33:23 -08:00
parent f2edc12561
commit 78ca952d76
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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);
}
}