[vcpkg] fix ci #13790 (#13794)

* [vcpkg] fix ci #13790

* add extra space

* needs ""
This commit is contained in:
Alexander Neumann 2020-09-28 22:58:55 +02:00 committed by GitHub
parent 4dc9ecd32b
commit c146787fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1174,7 +1174,11 @@ namespace vcpkg::Files
virtual std::vector<fs::path> find_from_PATH(const std::string& name) const override
{
#if defined(_WIN32)
static constexpr StringLiteral EXTS[] = {".cmd", ".exe", ".bat"};
#else // ^^^ defined(_WIN32) // !defined(_WIN32) vvv
static constexpr StringLiteral EXTS[] = {""};
#endif // ^^^!defined(_WIN32)
auto paths = Strings::split_paths(System::get_environment_variable("PATH").value_or_exit(VCPKG_LINE_INFO));
std::vector<fs::path> ret;