We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9bc51f commit d493550Copy full SHA for d493550
src/lib.rs
@@ -222,9 +222,11 @@ fn do_locate_java_home() -> errors::Result<String> {
222
};
223
}
224
225
- // Here we should have found ourselves in a directory like /usr/lib/jvm/java-8-oracle/jre/bin/java
226
- test_path.pop();
227
+ if !is_macos() {
+ // Here we should have found ourselves in a directory like /usr/lib/jvm/java-8-oracle/jre/bin/java
+ test_path.pop();
228
229
+ }
230
231
match test_path.to_str() {
232
Some(s) => Ok(String::from(s)),
0 commit comments