We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c5ea30 commit e46d560Copy full SHA for e46d560
postInstall.js
@@ -30,12 +30,12 @@ require('find-java-home')(function(err, home){
30
});
31
32
function getCorrectSoForPlatform(soFiles){
33
- var so = getCorrectSoForPlatform(soFiles);
+ var so = _getCorrectSoForPlatform(soFiles);
34
return removeDuplicateJre(so);
35
}
36
37
function removeDuplicateJre(filePath){
38
- while(filePath.indexOf('jre/jre')>0){
+ while(filePath.indexOf('jre/jre')>=0){
39
filePath = filePath.replace('jre/jre','jre');
40
41
return filePath;
0 commit comments