From 2a763e8f3b684df88ce1d7aba4ed090f0ada0206 Mon Sep 17 00:00:00 2001 From: Ahmed Mahdy Date: Wed, 21 Sep 2016 03:34:18 -0700 Subject: [PATCH] Account for when ImportBefore does not exist --- src/commands_integration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands_integration.cpp b/src/commands_integration.cpp index 0156d5e2a..368ff0581 100644 --- a/src/commands_integration.cpp +++ b/src/commands_integration.cpp @@ -190,7 +190,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 COPY "%s" "%s" /Y > nul)", sys_src_path.string(), system_wide_targets_file.string()); + const std::string param = Strings::format(R"(/c XCOPY "%s" "%s*" /Y > nul)", sys_src_path.string(), system_wide_targets_file.string()); elevation_prompt_user_choice user_choice = elevated_cmd_execute(param); switch (user_choice) {