Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
src: fix java path detection failures on linux (#1138)
Browse files Browse the repository at this point in the history
readlink was being invoked as "readlink" "-f path/to/java". It should've been "readlink" "-f" "path/to/java" instead.
  • Loading branch information
midchildan authored Feb 15, 2021
1 parent 17cbe46 commit 64b42f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ FilePath JavaPathDetectorLinux::getJavaInPath() const

FilePath JavaPathDetectorLinux::readLink(const FilePath& path) const
{
FilePath javaPath(utility::executeProcess(L"readlink", std::vector<std::wstring>{L"-f " + path.wstr()}).second);
FilePath javaPath(utility::executeProcess(L"readlink", std::vector<std::wstring>{L"-f", path.wstr()}).second);
if (!javaPath.empty())
{
return javaPath;
Expand Down

0 comments on commit 64b42f1

Please sign in to comment.