Skip to content

Conversation

woldie
Copy link

@woldie woldie commented Oct 21, 2020

Hey, thanks for this sharp tool. I'm launching Java like a boss because of you!

My linux install of update-java-alternatives on Ubuntu 20.04 does some pretty formating for columns of data. It's output looks like this:

java-1.11.0-openjdk-amd64      1111       /usr/lib/jvm/java-1.11.0-openjdk-amd64
java-1.8.0-openjdk-amd64       1081       /usr/lib/jvm/java-1.8.0-openjdk-amd64

Those unexpected extra spaces did not parse properly for the linux platform implementation and caused no JVM's to be detected from the output of update-java-alternatives -l.

This fix does a regex to parse one or more spaces between columns instead of a single space.

@woldie
Copy link
Author

woldie commented Oct 21, 2020

probably fixes #8?

@woldie
Copy link
Author

woldie commented Dec 16, 2020

Bump for great justice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant