Enclose path in quotes

This commit is contained in:
Alexander Karatarakis 2017-03-03 14:55:33 -08:00
parent 2054f964fd
commit 6e094c0891

View File

@ -44,7 +44,7 @@ namespace vcpkg::Environment
{
const fs::path script = paths.scripts / "fetchDependency.ps1";
// TODO: switch out ExecutionPolicy Bypass with "Remove Mark Of The Web" code and restore RemoteSigned
return Strings::wformat(L"powershell -ExecutionPolicy Bypass %s -Dependency %s", script.native(), tool_name);
return Strings::wformat(LR"(powershell -ExecutionPolicy Bypass "%s" -Dependency %s)", script.native(), tool_name);
}
void ensure_git_on_path(const vcpkg_paths& paths)