diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-09-28 12:22:12 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2016-09-28 12:22:12 -0700 |
| commit | 1402262962f9f29faa1c611b78b793a389a13843 (patch) | |
| tree | 3e714071fff06ded1b61fb1c93a2d106fa4c189c /toolsrc/src/commands_integration.cpp | |
| parent | 0ce48afe1c4c21b8ab7007f5504bfae80f4ad1dc (diff) | |
| download | vcpkg-1402262962f9f29faa1c611b78b793a389a13843.tar.gz vcpkg-1402262962f9f29faa1c611b78b793a389a13843.zip | |
[vcpkg] Fix user wide integration to avoid XCOPY due to locale-specific failures
Diffstat (limited to 'toolsrc/src/commands_integration.cpp')
| -rw-r--r-- | toolsrc/src/commands_integration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/commands_integration.cpp b/toolsrc/src/commands_integration.cpp index 4f3fdd20b..aa10e210b 100644 --- a/toolsrc/src/commands_integration.cpp +++ b/toolsrc/src/commands_integration.cpp @@ -195,7 +195,7 @@ namespace vcpkg const fs::path sys_src_path = tmp_dir / "vcpkg.system.targets"; std::ofstream(sys_src_path) << create_system_targets_shortcut(); - const std::string param = Strings::format(R"(/c echo f | XCOPY "%s" "%s" /Y > nul)", sys_src_path.string(), system_wide_targets_file.string()); + const std::string param = Strings::format(R"(/c mkdir "%s" & copy "%s" "%s" /Y > nul)", system_wide_targets_file.parent_path().string(), sys_src_path.string(), system_wide_targets_file.string()); elevation_prompt_user_choice user_choice = elevated_cmd_execute(param); switch (user_choice) { |
