mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-01-22 03:16:17 +00:00
Don't print messages to the screen when where.exe fails to find something
This commit is contained in:
parent
e3bba294b4
commit
2d94b2198a
@ -55,7 +55,7 @@ namespace vcpkg
|
||||
|
||||
static std::vector<fs::path> find_from_PATH(const std::wstring& name)
|
||||
{
|
||||
const std::wstring cmd = Strings::wformat(L"where.exe %s", name);
|
||||
const std::wstring cmd = Strings::wformat(L"where.exe %s 2>&1", name);
|
||||
auto out = System::cmd_execute_and_capture_output(cmd);
|
||||
if (out.exit_code != 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user