Skip to content

Commit

Permalink
[Truffle] Use platform-independent code to compare the basename.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Sep 27, 2016
1 parent 293c528 commit ddf8eb3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -55,7 +55,7 @@ private String findJRubyHome() {
throw new JavaException(e);
}

if (currentJarFile.toString().endsWith("/ruby.jar")) {
if (currentJarFile.getName().equals("ruby.jar")) {
String jarDir = currentJarFile.getParent();
if (new File(jarDir, "lib").isDirectory()) {
jrubyRuntime.setJRubyHome(jarDir);
Expand Down

0 comments on commit ddf8eb3

Please sign in to comment.