From 3eb0526468d07824900c462ccfacdeffd7fa1969 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Mon, 6 Mar 2017 16:16:56 -0800 Subject: Properly handle spaces in path when calling powershell script --- toolsrc/include/vcpkg_System.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'toolsrc/include/vcpkg_System.h') diff --git a/toolsrc/include/vcpkg_System.h b/toolsrc/include/vcpkg_System.h index a414ba0d4..14f39ca40 100644 --- a/toolsrc/include/vcpkg_System.h +++ b/toolsrc/include/vcpkg_System.h @@ -28,6 +28,10 @@ namespace vcpkg::System return cmd_execute_and_capture_output(cmd_line.c_str()); } + std::wstring create_powershell_script_cmd(const fs::path& script_path); + + std::wstring create_powershell_script_cmd(const fs::path& script_path, const std::wstring& args); + enum class color { success = 10, -- cgit v1.2.3